/// <summary> /// Gets the item value from the items array. /// This method makes the combination between ItemsElementName and Items array /// to the get value. /// </summary> /// <param name="itemName">Name of the item.</param> /// <returns></returns> public Object GetItemValue(textfilecontent_ItemsChoices itemName) { for (int i = 0; i <= this.TextfilecontentItemsElementName.Count() - 1; i++) { if (this.TextfilecontentItemsElementName[i] == itemName) { return(this.Items[i]); } } return(null); }
/// <summary> /// Gets the item value from the items array. /// This method makes the combination between ItemsElementName and Items array /// to the get value. /// </summary> /// <param name="itemName">Name of the item.</param> /// <returns></returns> public Object GetItemValue(textfilecontent_ItemsChoices itemName) { for (int i = 0; i <= this.TextfilecontentItemsElementName.Count() - 1; i++) { if (this.TextfilecontentItemsElementName[i] == itemName) { return this.Items[i]; } } return null; }