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