private static IDictionary <string, object> ConvertDynamicDictionary(DynamicDictionary dictionary)
 {
     return(dictionary.GetDynamicMemberNames().ToDictionary(
                memberName => memberName,
                memberName => dictionary[memberName],
                StringComparer.InvariantCultureIgnoreCase));
 }
        private static IDictionary<string, object> ConvertDynamicDictionary(DynamicDictionary dictionary)
        {
            if (dictionary == null)
                throw new ArgumentNullException(nameof(dictionary));

            return dictionary.GetDynamicMemberNames().ToDictionary(
                    memberName => memberName,
                    memberName => dictionary[memberName]);
        }
Ejemplo n.º 3
0
        private IDictionary <string, string> ConvertDynamicDictionary(DynamicDictionary dictionary)
        {
            if (dictionary == null)
            {
                return(null);
            }

            return(dictionary.GetDynamicMemberNames().ToDictionary(
                       memberName => this.fieldNameConverter.Convert(memberName),
                       memberName => (string)dictionary[memberName]));
        }
Ejemplo n.º 4
0
        private IDictionary<string, string> ConvertDynamicDictionary(DynamicDictionary dictionary)
        {
            if (dictionary == null)
            {
                return null;
            }

            return dictionary.GetDynamicMemberNames().ToDictionary(
                    memberName => this.fieldNameConverter.Convert(memberName),
                    memberName => (string)dictionary[memberName]);
        }
Ejemplo n.º 5
0
 private static IDictionary<string, string> ConvertDynamicDictionary(DynamicDictionary dictionary)
 {
     return dictionary.GetDynamicMemberNames().ToDictionary(
         memberName => memberName,
         memberName => (string)dictionary[memberName]);
 }
Ejemplo n.º 6
0
 private IDictionary <string, string> ConvertDynamicDictionary(DynamicDictionary dictionary)
 {
     return(dictionary?.GetDynamicMemberNames().ToDictionary(
                memberName => fieldNameConverter.Convert(memberName),
                memberName => (string)dictionary[memberName]));
 }
Ejemplo n.º 7
0
 private static IDictionary <string, string> ConvertDynamicDictionary(DynamicDictionary dictionary)
 {
     return(dictionary.GetDynamicMemberNames().ToDictionary(
                memberName => memberName,
                memberName => (string)dictionary[memberName]));
 }
Ejemplo n.º 8
0
 static IDictionary <string, string> ConvertDynamicDictionary(DynamicDictionary dictionary)
 => dictionary.GetDynamicMemberNames().ToDictionary(
     memberName => memberName,
     memberName => (string)dictionary[memberName]);
 public CaseInsensitiveDynamicDictionary(DynamicDictionary dict)
 {
     foreach (var name in dict.GetDynamicMemberNames())
         this[name] = dict[name];
 }