protected virtual void WriteDocumentMetaConvention(ISerializationConvention convention, DocumentSerializationMeta meta) { if(convention == null) return; convention.Apply(meta, ConventionWriter); }
protected virtual void WriteDocumentMetaConvention(ISerializationConvention convention, DocumentSerializationMeta meta) { if (convention == null) { return; } convention.Apply(meta, ConventionWriter); }
public SerializationConventions() { DocType = new StringSerializationConvention( "$doctype", m => !m.IsAnonymous ? m.DocType.ToLowerInvariant() : null); DocNamespace = new StringSerializationConvention( "$docns", m => m.DocNamespace); DocVersion = new StringSerializationConvention( "$docver", m => m.DocVersion); }
public SerializationConventions() { DocType = new DocTypeSerializationConvention(); }
public SerializationConventions() { DocType = new DocTypeSerializationConvention(); }