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]); }
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])); }
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]); }
private static IDictionary<string, string> ConvertDynamicDictionary(DynamicDictionary dictionary) { return dictionary.GetDynamicMemberNames().ToDictionary( memberName => memberName, memberName => (string)dictionary[memberName]); }
private IDictionary <string, string> ConvertDynamicDictionary(DynamicDictionary dictionary) { return(dictionary?.GetDynamicMemberNames().ToDictionary( memberName => fieldNameConverter.Convert(memberName), memberName => (string)dictionary[memberName])); }
private static IDictionary <string, string> ConvertDynamicDictionary(DynamicDictionary dictionary) { return(dictionary.GetDynamicMemberNames().ToDictionary( memberName => memberName, memberName => (string)dictionary[memberName])); }
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]; }