Is there anyway to use a list of properties instead of an object to set the properties.
I'm looking for something like
List<PropertyInformation> Properties
class PropertyInformation
{
public string Category {get;set;}
public string Description {get;set;}
public string DisplayName {get;set;}
public object Value {get;set;}
}
so I would have a property like new PropertyInformation { Category = "A", Description = "B", DisplayName ="C", Value =false};
instead of
class Name
{
[Category("A")]
[DisplayName("C")]
[Description("B")]
public bool RandomBool {get;set;}
}
thanks.