public void AddMember(SDMemberBase sdMember) { if (!Members.ContainsKey(sdMember.Identifier)) { Members.Add(sdMember.Identifier, sdMember); } }
/// <default> /// <summary> /// Returns a member, referenced by its identifier. /// </summary> /// <param name="identifier">The identifier of the member.</param> /// <returns>The member, if it is available.</returns> /// </default> /// <de> /// <summary> /// Liefert das Mitglied mit dem angegebenen Identifikator. /// </summary> /// <param name="identifier">Der Identifikator des Mitglieds.</param> /// <returns>Das Mitglied, falls dieses vorhanden ist.</returns> /// </de> public SDMemberBase GetMemberByIdentifier(string identifier) { SDMemberBase sdMember = null; Members.TryGetValue(identifier, out sdMember); if (sdMember == null) { var sdMethod = GetMethodByIdentifier(identifier); if (sdMethod != null) { sdMember = sdMethod; } } return(sdMember); }