Пример #1
0
 public MemberContent(INodeBuilder nodeBuilder, ContentBase container, IMemberDescriptor member, bool isPrimitive, IReference reference)
     : base(nodeBuilder.TypeDescriptorFactory.Find(member.Type), isPrimitive, reference)
 {
     if (container == null) throw new ArgumentNullException(nameof(container));
     Member = member;
     Container = container;
     nodeContainer = nodeBuilder.NodeContainer;
 }
Пример #2
0
 public MemberContent(INodeBuilder nodeBuilder, ContentBase container, IMemberDescriptor member, bool isPrimitive, IReference reference)
     : base(nodeBuilder.TypeDescriptorFactory.Find(member.Type), isPrimitive, reference)
 {
     if (container == null)
     {
         throw new ArgumentNullException(nameof(container));
     }
     Member        = member;
     Container     = container;
     nodeContainer = nodeBuilder.NodeContainer;
 }
 /// <inheritdoc/>
 public virtual IContent CreateMemberContent(INodeBuilder nodeBuilder, ContentBase container, IMemberDescriptor member, bool isPrimitive, object value)
 {
     var reference = nodeBuilder.CreateReferenceForNode(member.Type, value);
     return new MemberContent(nodeBuilder, container, member, isPrimitive, reference);
 }
Пример #4
0
 internal void SetOwnerContent(IContent ownerContent, Index index)
 {
     boxedStructureOwner      = (ContentBase)ownerContent;
     boxedStructureOwnerIndex = index;
 }