コード例 #1
0
ファイル: Reference.cs プロジェクト: kobeyoung81/JBServer
        public void SerializeMembers(XmlSerializationContext <VirtualContext> context)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            context.AutoSerializeMembers(item, new VirtualContext(
                                             new Override("id", Schemas.DidlLiteSchema, id),
                                             new Override("parentID", Schemas.DidlLiteSchema, parent_id),
                                             new Override("refID", Schemas.DidlLiteSchema, item.Id)
                                             ));
        }
コード例 #2
0
 public void SerializeMembers(XmlSerializationContext <int> context)
 {
     context.Writer.WriteAttributeString("depth", context.Context.ToString());
     context.AutoSerializeMembers(this, context.Context + 1);
 }
コード例 #3
0
 protected override void SerializeMembers(XmlSerializationContext context)
 {
     context.AutoSerializeMembers(this);
 }
コード例 #4
0
 public void SerializeMembers(XmlSerializationContext <VirtualContext> context)
 {
     context.AutoSerializeMembers(element, new VirtualContext(new Override("bat", "foo")));
 }