public IAssociationMapping <T, TElement> OtherKey(string key_name) { if (string.IsNullOrEmpty(key_name)) { return(this); } if (!OtherKeys.Contains(key_name)) { OtherKeys.Add(key_name); } return(this); }
/// <summary> /// Gets or sets the value associated with the specified key /// </summary> /// <param name="index"></param> /// <returns></returns> public string this[string index] { get { if (!OtherKeys.ContainsKey(index)) { throw new KeyNotFoundException(); } return(OtherKeys[index]); } set { if (OtherKeys.ContainsKey(index)) { OtherKeys[index] = value; } else { OtherKeys.Add(index, value); } } }