Creates the serializer that allows user to specify his own method instantiating XmlSerializer with desired settings.

Namespace: Eneter.Messaging.DataProcessing.Serializing
Assembly: Eneter.Messaging.Framework (in Eneter.Messaging.Framework.dll) Version: 5.0.0.0 (5.0.0.0)

Syntax

C#
public XmlStringSerializer(
	Func<Type, XmlSerializer> xmlSerializerFactoryMethod
)
Visual Basic
Public Sub New ( _
	xmlSerializerFactoryMethod As Func(Of Type, XmlSerializer) _
)
Visual C++
public:
XmlStringSerializer(
	Func<Type^, XmlSerializer^>^ xmlSerializerFactoryMethod
)

Parameters

xmlSerializerFactoryMethod
Type: System..::..Func<(Of <(<'Type, XmlSerializer>)>)>
The factory method responsible for creation of XmlSerializer. The factory method is called during the serialization or deserialization.
The factory method can be called from more threads at the same time, so be sure, your factory method is thread safe.

Version Information

.NET

Supported in: .NET 4.5, .NET 4.0, .NET 3.5

Mono

Supported in: Mono 2.6.4

Silverlight

Supported in: Silverlight 5, Silverlight 4, Silverlight 3

Windows Phone

Supported in: Windows Phone 7.1, Windows Phone 7

See Also