Class Serializer<T>
Represents the serializer.
Inherited Members
Namespace: Platform.Protocols.Xml
Assembly: Platform.Protocols.dll
Syntax
public static class Serializer<T>
Type Parameters
Name | Description |
---|---|
T |
Fields
| Improve this Doc View SourceInstance
The .
Declaration
public static readonly XmlSerializer Instance
Field Value
Type | Description |
---|---|
XmlSerializer |
Methods
| Improve this Doc View SourceFromFile(String)
Creates the file using the specified path.
Declaration
public static T FromFile(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path.
|
Returns
Type | Description |
---|---|
T | The
|
FromString(String)
Creates the string using the specified xml.
Declaration
public static T FromString(string xml)
Parameters
Type | Name | Description |
---|---|---|
String | xml | The xml.
|
Returns
Type | Description |
---|---|
T | The
|
ToFile(T, String)
Returns the file using the specified object.
Declaration
public static void ToFile(T object, string path)
Parameters
Type | Name | Description |
---|---|---|
T | object | |
String | path | The path.
|
ToString(T)
Returns the string using the specified object.
Declaration
public static string ToString(T object)
Parameters
Type | Name | Description |
---|---|---|
T | object |
Returns
Type | Description |
---|---|
String | The string
|