XmlSerializer
Assembly: ServiceStack.Text.dll
View Source
Declaration
public class XmlSerializer
Fields
XmlWriterSettings
View Source
Declaration
public static readonly XmlWriterSettings XmlWriterSettings
XmlReaderSettings
View Source
Declaration
public static readonly XmlReaderSettings XmlReaderSettings
Instance
View Source
Declaration
public static XmlSerializer Instance
Methods
DeserializeFromString(String, Type)
View Source
Declaration
public static object DeserializeFromString(string xml, Type type)
Returns
System.Object
Parameters
| Type | Name |
|---|---|
System.String | xml |
System.Type | type |
DeserializeFromString<T>(String)
View Source
Declaration
public static T DeserializeFromString<T>(string xml)
Returns
<T>
Parameters
| Type | Name |
|---|---|
System.String | xml |
Type Parameters
T
DeserializeFromReader<T>(TextReader)
View Source
Declaration
public static T DeserializeFromReader<T>(TextReader reader)
Returns
<T>
Parameters
| Type | Name |
|---|---|
System.IO.TextReader | reader |
Type Parameters
T
DeserializeFromStream<T>(Stream)
View Source
Declaration
public static T DeserializeFromStream<T>(Stream stream)
Returns
<T>
Parameters
| Type | Name |
|---|---|
System.IO.Stream | stream |
Type Parameters
T
DeserializeFromStream(Type, Stream)
View Source
Declaration
public static object DeserializeFromStream(Type type, Stream stream)
Returns
System.Object
Parameters
| Type | Name |
|---|---|
System.Type | type |
System.IO.Stream | stream |
SerializeToString<T>(T)
View Source
Declaration
public static string SerializeToString<T>(T from)
Returns
System.String
Parameters
| Type | Name |
|---|---|
<T> | from |
Type Parameters
T
SerializeToWriter<T>(T, TextWriter)
View Source
Declaration
public static void SerializeToWriter<T>(T value, TextWriter writer)
Parameters
| Type | Name |
|---|---|
<T> | value |
System.IO.TextWriter | writer |
Type Parameters
T
SerializeToStream(Object, Stream)
View Source
Declaration
public static void SerializeToStream(object obj, Stream stream)
Parameters
| Type | Name |
|---|---|
System.Object | obj |
System.IO.Stream | stream |