Here is the design problem in pseudo example: It is ASP.NET User control (UC) which uses the "Food" object as data source and this object has property FoodType - "Veg" || "Nonveg". The user control changes UI display depending upon FoodType property. In code-behind class of User Control, some methods have same if/then/else condition: if(Food.FoodType == "Veg")... else ... Here, I would like use State-like pattern such that code-behind class of User Control
Posted to
C#
(Forum)
by
nmahesh567
on
8/11/2009
Filed under: .Net, algorithm, Asp.Net 1.1, c# 2005 Gridview, .net 2.0 c#, c# 2008 LINQ, .Net 2.0 c# Exception, C# in Asp.NET, C# .NET Genetic Algorithm Program Code, C# code, C# 2.0, C# 2005, ASP.net2.0, asp.net 2.0 C#, <C#>, .Net 2.0 c# .Net 2.0 sp2, .Net 2.0 c# and Encryption, c# 3.5, ASP.net C# Object Reference, ASP.net 3.5, asp.net 2.0 using C#