C# Класс Xml.Net.Serializers.PrimitiveSerializer

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Deserialize ( Type type, System.Xml.Linq.XElement parentElement, XmlConvertOptions options ) : object

Deserializes the XElement to the fundamental primitive (e.g. string, int etc.) of a specified type using options.

Serialize ( object value, string name, XmlConvertOptions options ) : System.Xml.Linq.XElement

Serializes a fundamental primitive object (e.g. string, int etc.) into a XElement using options.

Описание методов

Deserialize() публичный статический Метод

Deserializes the XElement to the fundamental primitive (e.g. string, int etc.) of a specified type using options.
public static Deserialize ( Type type, System.Xml.Linq.XElement parentElement, XmlConvertOptions options ) : object
type System.Type The type of the fundamental primitive to deserialize.
parentElement System.Xml.Linq.XElement The parent XElement used to deserialize the fundamental primitive.
options XmlConvertOptions Indicates how the output is deserialized.
Результат object

Serialize() публичный статический Метод

Serializes a fundamental primitive object (e.g. string, int etc.) into a XElement using options.
public static Serialize ( object value, string name, XmlConvertOptions options ) : System.Xml.Linq.XElement
value object The primitive to serialize.
name string The name of the primitive to serialize.
options XmlConvertOptions Indicates how the output is formatted or serialized.
Результат System.Xml.Linq.XElement