Posted 14 years ago
by Mary Fontana
-
Rudolph Technologies
I have a class that has a list of values.
[TypeConverter(typeof(ExpandableObjectConverter))]
public MyClass
{
public string Name {get set; }
[TypeConverter(typeof(StringCollectionConverter))]
public List<string> Values {get;}
}
If I use the default prop editor, there is not a + for adding a string value.
I extended ExpandableObjectConverter with StringCollectionConverter to show in the Values field instead of "2 items" the names of the items such as "AA, BB"
But if I change the value of one of the items, the string "AA, BB" does not get modified.
Is there a prop editor for list of strings/numbers?
Any suggestions?
[TypeConverter(typeof(ExpandableObjectConverter))]
public MyClass
{
public string Name {get set; }
[TypeConverter(typeof(StringCollectionConverter))]
public List<string> Values {get;}
}
If I use the default prop editor, there is not a + for adding a string value.
I extended ExpandableObjectConverter with StringCollectionConverter to show in the Values field instead of "2 items" the names of the items such as "AA, BB"
But if I change the value of one of the items, the string "AA, BB" does not get modified.
Is there a prop editor for list of strings/numbers?
Any suggestions?