Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Indexers

Status
Not open for further replies.

Morpheus1981

Programmer
Joined
Aug 9, 2001
Messages
105
Location
CR
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.
}
}
 
See faq732-3363

Chip H.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top