Beispiel #1
0
        private static Dictionary <string, MemberInfo> GetMembersDictionary(ITypeInfo typeInfo)
        {
            Dictionary <string, MemberInfo> dictionary = new Dictionary <string, MemberInfo>(StringComparer.Ordinal);

            var members = typeInfo
                          .GetMembers()
                          .Where(IsValidMemberInfo)
                          .ToList();

            foreach (var member in members)
            {
                InternalSDKUtils.AddToDictionary(dictionary, member.Name, member);
            }

            return(dictionary);
        }