Table of Contents

Class BaseClassSerializable

Namespace
FatturaElettronica.Core
Assembly
FatturaElettronica.dll
  • XML (de)serialization;
  • JSON (de)serialization.
public class BaseClassSerializable : BaseClass, INotifyPropertyChanged, IEquatable<BaseClass>, IXmlSerializable
Inheritance
BaseClassSerializable
Implements
Derived
Inherited Members
Extension Methods

Constructors

BaseClassSerializable()

Constructor.

protected BaseClassSerializable()

BaseClassSerializable(XmlReader)

protected BaseClassSerializable(XmlReader r)

Parameters

r XmlReader

Properties

XmlOptions

protected XmlOptions XmlOptions { get; set; }

Property Value

XmlOptions

Methods

FromJson(Utf8JsonReader)

Deserializes the current BusinessObject from a json stream.

public virtual void FromJson(Utf8JsonReader r)

Parameters

r Utf8JsonReader

Active json stream reader

Remarks

Side effects on parse handling

GetSchema()

public XmlSchema GetSchema()

Returns

XmlSchema

ReadAndHandleXmlStartElement(XmlReader)

protected virtual void ReadAndHandleXmlStartElement(XmlReader r)

Parameters

r XmlReader

ReadXml(XmlReader)

Deserializes the current BusinessObject from a XML stream.

public virtual void ReadXml(XmlReader r)

Parameters

r XmlReader

Active XML stream reader.

Remarks

Reads the outer element. Leaves the reader at the same depth.

ToJson()

Serializes the instance to JSON

public virtual string ToJson()

Returns

string

A JSON string representing the class instance.

ToJson(JsonOptions)

Serializes the class to JSON.

public virtual string ToJson(JsonOptions jsonOptions)

Parameters

jsonOptions JsonOptions

JSON formatting options.

Returns

string

A JSON string representing the class instance.

WriteXml(XmlWriter)

Serializes the current BusinessObject instance to a XML stream.

public virtual void WriteXml(XmlWriter w)

Parameters

w XmlWriter

Active XML stream writer.

Remarks

Writes only its inner content, not the outer element. Leaves the writer at the same depth.