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; }
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); }
internal void SetOwnerContent(IContent ownerContent, Index index) { boxedStructureOwner = (ContentBase)ownerContent; boxedStructureOwnerIndex = index; }