Verifies that an object can be deserialized from Xml using an XmlSerializer and returns the resulting deserialized object.

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

Syntax

C#
public static T XmlDeserialize<T>(
	string xml
)
Visual Basic (Declaration)
Public Shared Function XmlDeserialize(Of T) ( _
	xml As String _
) As T

Parameters

xml
Type: System..::.String
The Xml.

Type Parameters

T

Return Value

The deserialized object.

Remarks

The assertion fails if xml is null.

Exceptions

ExceptionCondition
Gallio.Framework.Assertions..::.AssertionExceptionThrown if the verification failed unless the current AssertionFailureBehavior indicates otherwise.

See Also