C# Class Xml.Net.Serializers.ListSerializer

ファイルを表示 Open project: hughbe/xml.net Class Usage Examples

Public Methods

Method Description
Deserialize ( Type type, System.Xml.Linq.XElement parent, XmlConvertOptions options ) : object

Deserializes the XElement to the list (e.g. List, Array of a specified type using options.

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

Serializes a list (e.g. List, Array etc.) into a XElement using options.

Method Details

Deserialize() public static method

Deserializes the XElement to the list (e.g. List, Array of a specified type using options.
public static Deserialize ( Type type, System.Xml.Linq.XElement parent, XmlConvertOptions options ) : object
type System.Type The type of the list to deserialize.
parent System.Xml.Linq.XElement
options XmlConvertOptions Indicates how the output is deserialized.
return object

Serialize() public static method

Serializes a list (e.g. List, Array etc.) into a XElement using options.
public static Serialize ( object value, string name, string elementNames, XmlConvertOptions options ) : System.Xml.Linq.XElement
value object The list to serialize.
name string The name of the list to serialize.
elementNames string The custom name of collection elements.
options XmlConvertOptions Indicates how the output is formatted or serialized.
return System.Xml.Linq.XElement