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); }
public bool Contains(string categoryName) { return(-1 != ItemCategoryList.IndexOf(this.GetNativeValue(), categoryName)); }