SerializationExtensions.PrepareForDeserialize(T) Method

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

SerializationExtensions.PrepareForDeserialize(T) Method

BR.AN.PviServices .NET


Prepares instance for deserialize. If the instance contains only a part of a file elements usually do not have an xmlns attribute. If the type information of the instance defines an namespace deserialization i not possible without such an attribute. This function checks for existing namespace attributes in the given content elements and add them if nessesary. Information about needed namespaces is taken from instances type information.

[Visual Basic]

<Extension> _

Public Shared Sub PrepareForDeserialize(Of T)( _

  ByVal instance As String _

)

[C#]

[Extension]

public static string PrepareForDeserialize<T>(

  this string instance

);

Parameters

instance

The string content to deserialize.

Return Value

The same string an instance if namespaces are already present. instance extended by namespace attributes for elements. Or Null if an error occured.

See Also

SerializationExtensions Class | BR.AN.PviServices Namespace


Generated from assembly BR.AN.PviServices [8.1.0.4]