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
Properties
XmlOptions
protected XmlOptions XmlOptions { get; set; }
Property Value
Methods
FromJson(Utf8JsonReader)
Deserializes the current BusinessObject from a json stream.
public virtual void FromJson(Utf8JsonReader r)
Parameters
r
Utf8JsonReaderActive json stream reader
Remarks
Side effects on parse handling
GetSchema()
public XmlSchema GetSchema()
Returns
ReadAndHandleXmlStartElement(XmlReader)
protected virtual void ReadAndHandleXmlStartElement(XmlReader r)
Parameters
ReadXml(XmlReader)
Deserializes the current BusinessObject from a XML stream.
public virtual void ReadXml(XmlReader r)
Parameters
r
XmlReaderActive 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
JsonOptionsJSON 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
XmlWriterActive XML stream writer.
Remarks
Writes only its inner content, not the outer element. Leaves the writer at the same depth.