Esempio n. 1
0
        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)
                                             ));
        }
Esempio n. 2
0
 public void SerializeMembers(XmlSerializationContext <int> context)
 {
     context.Writer.WriteAttributeString("depth", context.Context.ToString());
     context.AutoSerializeMembers(this, context.Context + 1);
 }
Esempio n. 3
0
 protected override void SerializeMembers(XmlSerializationContext context)
 {
     context.AutoSerializeMembers(this);
 }
Esempio n. 4
0
 public void SerializeMembers(XmlSerializationContext <VirtualContext> context)
 {
     context.AutoSerializeMembers(element, new VirtualContext(new Override("bat", "foo")));
 }