Class XmlObjectTextSerializer
Implementation of IObjectTextSerializer using Xml.
Implements
Inherited Members
Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure.Xml
Assembly: Aruba.Infrastructure.dll
Syntax
public class XmlObjectTextSerializer : IObjectTextSerializer
Methods
View SourceGetDefaultFileExtension()
Get default file extensions.
Declaration
public string GetDefaultFileExtension()
Returns
Type | Description |
---|---|
string | The extension string. |
ReadObjectFromText(TextReader, Type)
Read an object from text.
Declaration
public object ReadObjectFromText(TextReader textReader, Type targetType)
Parameters
Type | Name | Description |
---|---|---|
TextReader | textReader | The text reader to use. |
Type | targetType | The target type to initialize. |
Returns
Type | Description |
---|---|
object | The created object. |
WriteObjectToText(object, TextWriter)
Write object to text.
Declaration
public void WriteObjectToText(object objectToWrite, TextWriter textWriter)
Parameters
Type | Name | Description |
---|---|---|
object | objectToWrite | The object to write out. |
TextWriter | textWriter | The text writer object to use. |