Validate object properties
Ronald Rex
101
Reputation points
I have objects that I am adding to a list of Interface items. My properties on my objects are strings. I was wondeing how do I make sure that my properties have values? Thanks !!!
public class Pizza
{
public string pizzaSize {get;set;}
public string pizzaType {get;set;}
public string sauceType {get;set;}
}
public static List<IMenuItem> items=new List<IMenuItem>();
Sign in to answer