Example #1
0
 public DictionaryEntrySourceMember(
     Type entryType,
     QualifiedMember matchedTargetMember,
     DictionarySourceMember parent)
     : this(
         entryType,
         () => parent.GetPath() + "['" + matchedTargetMember.Name + "']",
         matchedTargetMember,
         parent)
 {
 }
        public DictionaryEntrySourceMember(
            Type entryType,
            QualifiedMember matchedTargetMember,
            DictionarySourceMember parent)
            : this(
                entryType,
                () => parent.GetPath() + "['" + matchedTargetMember.Name + "']",
                matchedTargetMember,
                parent)
        {
            var entryMember = Member.RootSource(entryType);

            _childMembers = new[] { entryMember };

            IsEnumerable = entryMember.IsEnumerable;
            IsSimple     = !IsEnumerable && entryMember.IsSimple;
        }