예제 #1
0
        public bool Remove(string item)
        {
            string[] nativeValue = this.GetNativeValue();
            int      num         = ItemCategoryList.IndexOf(nativeValue, item);

            if (num != -1)
            {
                this.SetNativeValue(Util.RemoveArrayElements <string>(nativeValue, new int[]
                {
                    num
                }));
                return(true);
            }
            return(false);
        }
예제 #2
0
 public bool Contains(string categoryName)
 {
     return(-1 != ItemCategoryList.IndexOf(this.GetNativeValue(), categoryName));
 }