Morpheus1981
Programmer
I am handling a property:
private Field[] m_fields = new Field[1];
But the numbers of fields will change during runtime, I don't want to set the index to 100 or more, I would like to change it when need it. I don't know how to do this.
public virtual Field this[string name]{
get{
}
set{
// here I want to increment my property m_fields and add the new value.
}
}
private Field[] m_fields = new Field[1];
But the numbers of fields will change during runtime, I don't want to set the index to 100 or more, I would like to change it when need it. I don't know how to do this.
public virtual Field this[string name]{
get{
}
set{
// here I want to increment my property m_fields and add the new value.
}
}