Show / Hide Table of Contents

Interface IObjectTextSerializer

Interface to write objects to and from text. Also knows about the default extension for files backing the text.

Namespace: Microsoft.Internal.Studios.Aruba.Infrastructure
Assembly: Aruba.Infrastructure.dll
Syntax
public interface IObjectTextSerializer

Methods

View Source

GetDefaultFileExtension()

Get the default extension for text files using this string format.

Declaration
string GetDefaultFileExtension()
Returns
Type Description
string

The extension string.

View Source

ReadObjectFromText(TextReader, Type)

Read an object of a target type from a given TextReader.

Declaration
object ReadObjectFromText(TextReader textReader, Type targetType)
Parameters
Type Name Description
TextReader textReader

The text reader to use.

Type targetType

The target data type.

Returns
Type Description
object

The data object.

View Source

WriteObjectToText(object, TextWriter)

Write the given object to a TextWriter.

Declaration
void WriteObjectToText(object objectToWrite, TextWriter textWriter)
Parameters
Type Name Description
object objectToWrite

The object to write.

TextWriter textWriter

The text writer to use.

  • View Source
In this article
Back to top Generated by DocFX