public void AddByKeyTypeValue(string AKeyData, string ATypeData, string AValueData) { KeyTypeValueItem item = new KeyTypeValueItem(); item.KeyData = AKeyData; item.TypeData = ATypeData; item.ValueData = AValueData; this.AddByItem(item); }
public int IndexByItem(KeyTypeValueItem AItem) { int Result = -1; bool Found = false; int AIndex = 0; int ACount = this.Items.Count; while (!Found && (AIndex < ACount)) { KeyTypeValueItem eachItem = this.Items[AIndex]; Found = (eachItem.KeyData == AItem.KeyData); AIndex++; } // while if (Found) { Result = (AIndex - 1); } return Result; }
public void AddByItem(KeyTypeValueItem item) { this.Items.Add(item); }