コード例 #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;
 }
コード例 #3
0
 /// <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
ファイル: BoxedContent.cs プロジェクト: zetz/xenko
 internal void SetOwnerContent(IContent ownerContent, Index index)
 {
     boxedStructureOwner      = (ContentBase)ownerContent;
     boxedStructureOwnerIndex = index;
 }