Utils_XmlDeserializeT Method (String, Type, Boolean, String) |
Deserializes a text to an object.
Namespace:
MicaSystems.Utils
Assembly:
MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax public static T Deserialize<T>(
this string serialized,
Type specificType,
bool ignoreNamespace,
string rootName
)
where T : class
Parameters
- serialized
- Type: SystemString
String to deserialize. - specificType
- Type: SystemType
Type inheriting from T or T. - ignoreNamespace
- Type: SystemBoolean
If true, sets Namespaces to false on XmlTextReader. - rootName
- Type: SystemString
Name of the root element.
Type Parameters
- T
- The object type to be deserialized.
Return Value
Type:
TT : deserialized object.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also