コード例 #1
0
 internal override ValueNode CreateSerializerOverride(ValueNode parent)
 {
     if (ChildType.GetTypeInfo().IsPrimitive)
     {
         return(new PrimitiveListValueNode(parent, Name, this));
     }
     return(new ListValueNode(parent, Name, this));
 }
コード例 #2
0
 public override ValueNode CreateSerializerOverride(ValueNode parent)
 {
     if (ChildType.GetTypeInfo().IsPrimitive)
     {
         return(new PrimitveArrayValueNode(parent, Name, this));
     }
     return(new ArrayValueNode(parent, Name, this));
 }