Example #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)
            {
                AWSSDKUtils.AddToDictionary(dictionary, member.Name, member);
            }

            return(dictionary);
        }