XmlSerializer.FromTypes Method (Type[])

 

Returns an array of XmlSerializer objects created from an array of types.

Namespace:   System.Xml.Serialization
Assembly:  System.Xml (in System.Xml.dll)

static member FromTypes : 
        types:Type[] -> XmlSerializer[]

Parameters

types
Type: System.Type[]

An array of Type objects.

Return Value

Type: System.Xml.Serialization.XmlSerializer[]

An array of XmlSerializer objects.

The FromTypes method allows you to efficiently create an array of XmlSerializer objects for processing an array of Type objects.

The following example uses the FromTypes method to return an array of XmlSerializer objects. The code includes three class definitions that are each used to create an array of Type objects.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: