예제 #1
0
 private static bool SourceMemberIsDictionary(
     IMemberMapperData mapperData,
     out DictionarySourceMember sourceDictionaryMember)
 {
     sourceDictionaryMember = mapperData.GetDictionarySourceMemberOrNull();
     return(sourceDictionaryMember != null);
 }
예제 #2
0
        public static bool SourceMemberIsStringKeyedDictionary(
            this IMemberMapperData mapperData,
            out DictionarySourceMember dictionarySourceMember)
        {
            dictionarySourceMember = mapperData.GetDictionarySourceMemberOrNull();

            if (dictionarySourceMember == null)
            {
                return(false);
            }

            return(dictionarySourceMember.KeyType == typeof(string));
        }
 public DictionaryEntryVariablePair(IMemberMapperData mapperData)
     : this(mapperData.GetDictionarySourceMemberOrNull(), mapperData)
 {
 }