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

Inheritance: StringSerializer
Show file Open project: ecologylab/simplCSharp

Public Methods

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

Private Methods

Method Description
IsSerializable ( FieldDescriptor fd, object obj ) : bool
Serialize ( object obj, FieldDescriptor rootObjectFieldDescriptor, TextWriter textWriter, TranslationContext translationContext, bool withTag ) : void

SerializeComposite ( object obj, TextWriter textWriter, TranslationContext translationContext, FieldDescriptor fd ) : void
SerializeCompositeCollection ( object obj, TextWriter textWriter, TranslationContext translationContext, FieldDescriptor fd ) : void
SerializeFields ( object obj, TextWriter textWriter, TranslationContext translationContext, ClassDescriptor cd ) : void

SerializeFieldsHelper ( TextWriter textWriter, object obj, TranslationContext translationContext, List fieldDescriptorList, int numOfFields ) : int
SerializePolymorphicCollection ( object obj, TextWriter textWriter, TranslationContext translationContext, FieldDescriptor fd ) : void
SerializeScalar ( object obj, FieldDescriptor fd, TextWriter textWriter, TranslationContext translationContext ) : void
SerializeScalarCollection ( object obj, TextWriter textWriter, TranslationContext translationContext, FieldDescriptor fd ) : void
WriteClose ( TextWriter textWriter ) : void

WriteCollectionEnd ( TextWriter textWriter ) : void
WriteCollectionScalar ( object obj, FieldDescriptor fd, TextWriter textWriter, TranslationContext translationContext ) : void
WriteCollectionStart ( String collectionFieldTag, TextWriter textWriter ) : void
WriteObjectStart ( FieldDescriptor fd, TextWriter textWriter, System.Boolean withTag ) : void

WritePolymorphicCollectionStart ( FieldDescriptor fd, TextWriter textWriter ) : void
WriteSimpRefAttribute ( object obj, TextWriter textWriter, TranslationContext translationContext ) : void

WriteSimplIdAttribute ( object obj, TextWriter textWriter, System.Boolean last, TranslationContext translationContext ) : void

WriteSimplRef ( object obj, FieldDescriptor fd, TextWriter textWriter, System.Boolean withTag, TranslationContext translationContext ) : void

WriteStart ( TextWriter textWriter ) : void

WriteWrap ( FieldDescriptor fd, TextWriter textWriter, bool close ) : void

Method Details

Serialize() public method

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