Exemple #1
0
 public void AddMember(SDMemberBase sdMember)
 {
     if (!Members.ContainsKey(sdMember.Identifier))
     {
         Members.Add(sdMember.Identifier, sdMember);
     }
 }
Exemple #2
0
 public void AddMember(SDMemberBase sdMember)
 {
     if (!Members.ContainsKey(sdMember.Identifier))
     {
         Members.Add(sdMember.Identifier, sdMember);
     }
 }
Exemple #3
0
        /// <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);
        }