public DictionaryEntrySourceMember(
     Type entryType,
     QualifiedMember matchedTargetMember,
     DictionarySourceMember parent)
     : this(
         entryType,
         () => parent.GetPath() + "." + matchedTargetMember.Name,
         matchedTargetMember)
 {
 }
Пример #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));
        }