SerializationInfo Constructor (Type, IFormatterConverter)

SerializationInfo Constructor (Type, IFormatterConverter)


Creates a new instance of the SerializationInfo class.

This API is not CLS-compliant.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public SerializationInfo(
	Type type,
	IFormatterConverter converter


Type: System.Type

The Type of the object to serialize.

Type: System.Runtime.Serialization.IFormatterConverter

The IFormatterConverter used during deserialization.

Exception Condition

type or converter is null.

The IFormatterConverter passed as the converter parameter converts data from its internal representation to the form the user requested. The internal representation of the data within the SerializationInfo depends on the formatter that created it.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft