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

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

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

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

Deserializes the XElement to the dictionary (e.g. Dictionary, HashTable of a specified type using options.

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

Serializes a dictionary (e.g. List, HashTable etc.) into a XElement using options.

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

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

Deserializes the XElement to the dictionary (e.g. Dictionary, HashTable 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 dictionary to deserialize.
parentElement System.Xml.Linq.XElement The parent XElement used to deserialize the dictionary.
options XmlConvertOptions Indicates how the output is deserialized.
Результат object

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

Serializes a dictionary (e.g. List, HashTable etc.) into a XElement using options.
public static Serialize ( object value, string name, string elementNames, string keyNames, string valueNames, XmlConvertOptions options ) : System.Xml.Linq.XElement
value object The dictionary to serialize.
name string The name of the dictionary to serialize.
elementNames string The custom name of collection elements.
keyNames string The optional custom name of dictionary key elements.
valueNames string The optional custom name of dictionary value elements.
options XmlConvertOptions Indicates how the output is formatted or serialized.
Результат System.Xml.Linq.XElement