public virtual TestProperty Add(String name) { //Exists int index = this.IndexOf(name); if (index >= 0) { return(plist[index]); } //Otherwise add TestProperty property = new TestProperty(name, null); plist.Add(property); return(property); }
public virtual TestProperty Add(String name) { //Exists int index = this.IndexOf(name); if (index >= 0) return plist[index]; //Otherwise add TestProperty property = new TestProperty(name, null); plist.Add(property); return property; }