I have a class that contains some values and an array, and I need elements in this array to have default values.
Like
class Object
{
public string OName { get; set;}
public string OType { get; set; }
public string Data { get; set; }
Object[] RelationList = new Object[5];
RelationList[0] = blabla;
RelationList[1] = blabla;
......
}
I need to set RelationList to some default values. Any body knows how to do that? Thanks.
Objectmight have another meaning somewhere... you might want to rethink that class name.