C# Class Simpl.Serialization.Serializers.StringFormats.StringSerializer

abstract base class for string serializers. used for preparing input data to serialize into multiple possible data outputs.
Inheritance: FormatSerializer
Show file Open project: ecologylab/simplCSharp

Public Methods

Method Description
Serialize ( object obj, TranslationContext translationContext ) : String

Serialize ( object obj, Stream stream, TranslationContext translationContext ) : void

closes the stream after serializing data.

Serialize ( object obj, StringBuilder stringBuilder, TranslationContext translationContext ) : void

Serialize ( object obj, TextWriter textWriter, TranslationContext translationContext ) : void

Method Details

Serialize() public method

public Serialize ( object obj, TranslationContext translationContext ) : String
obj object
translationContext Simpl.Serialization.Context.TranslationContext
return String

Serialize() public method

closes the stream after serializing data.
public Serialize ( object obj, Stream stream, TranslationContext translationContext ) : void
obj object
stream Stream
translationContext Simpl.Serialization.Context.TranslationContext
return void

Serialize() public method

public Serialize ( object obj, StringBuilder stringBuilder, TranslationContext translationContext ) : void
obj object
stringBuilder StringBuilder
translationContext Simpl.Serialization.Context.TranslationContext
return void

Serialize() public abstract method

public abstract Serialize ( object obj, TextWriter textWriter, TranslationContext translationContext ) : void
obj object
textWriter System.IO.TextWriter
translationContext Simpl.Serialization.Context.TranslationContext
return void