Interface IXmlSerializer
Namespace: MediaBrowser.Model.Serialization
Assembly: MediaBrowser.Model.dll
Syntax
public interface IXmlSerializer
Methods
DeserializeFromBytes(Type, Byte[])
Deserializes from bytes.
Declaration
object DeserializeFromBytes(Type type, byte[] buffer)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
System.Byte[] | buffer | The buffer. |
Returns
Type | Description |
---|---|
System.Object | System.Object. |
DeserializeFromFile(Type, String)
Deserializes from file.
Declaration
object DeserializeFromFile(Type type, string file)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
System.String | file | The file. |
Returns
Type | Description |
---|---|
System.Object | System.Object. |
DeserializeFromStream(Type, Stream)
Deserializes from stream.
Declaration
object DeserializeFromStream(Type type, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
System.IO.Stream | stream | The stream. |
Returns
Type | Description |
---|---|
System.Object | System.Object. |
SerializeToFile(Object, String)
Serializes to file.
Declaration
void SerializeToFile(object obj, string file)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The obj. |
System.String | file | The file. |
SerializeToStream(Object, Stream)
Serializes to stream.
Declaration
void SerializeToStream(object obj, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The obj. |
System.IO.Stream | stream | The stream. |