Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }