Click or drag to resize

SerializationGetObjectT(String) Method

Note: This API is now obsolete.

Performs XML deserialization on the XML string and returns the typed object for it.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
[ObsoleteAttribute("This method will be removed in future builds, use the Deserialize() method instead.")]
public static T GetObject<T>(
	string serializedObject
)
View Source

Parameters

serializedObject  String
A String representing the object (serializedObject) to deserialize.

Type Parameters

T
The type of the object to create from the serialized string serializedObject.

Return Value

T
A type T based on serializedObject.
Exceptions
ExceptionCondition
InvalidOperationException An error occurred during deserialization. The original exception is available using the InnerException property.
Remarks
This function will throw an error during deserialization if the input data is invalid, consider using TryGetObject to prevent needing to implement exception handling.
See Also