Verifies that a type supports the Xml serialization protocol used by XmlSerializer.

Namespace:  MbUnit.Framework
Assembly:  MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public static void IsXmlSerializableType(
	Type type
)
Visual Basic (Declaration)
Public Shared Sub IsXmlSerializableType ( _
	type As Type _
)

Parameters

type
Type: System..::.Type
The type to verify.

Remarks

Ensures that an XmlSerializer for the type can be constructed without error.

Exceptions

ExceptionCondition
Gallio.Framework.Assertions..::.AssertionExceptionThrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise.
System..::.ArgumentNullExceptionThrown if type is null.

See Also