C# Class JsonConversionsDemo.CollectionImporterBase

An abstract base class for importer implementations that can import a concrete collection instance from a JSON array.
Inheritance: Jayrock.Json.Conversion.Converters.ImporterBase
Mostrar archivo Open project: atifaziz/Jayrock

Public Methods

Method Description
CollectionImporterBase ( Type outputType, Type elementType ) : System

Protected Methods

Method Description
CreateCollection ( ) : object
ImportElements ( object collection, Jayrock.Json.Conversion.ImportContext context, Jayrock.Json.JsonReader reader ) : void
ImportFromArray ( Jayrock.Json.Conversion.ImportContext context, Jayrock.Json.JsonReader reader ) : object

Method Details

CollectionImporterBase() public method

public CollectionImporterBase ( Type outputType, Type elementType ) : System
outputType System.Type
elementType System.Type
return System

CreateCollection() protected abstract method

protected abstract CreateCollection ( ) : object
return object

ImportElements() protected abstract method

protected abstract ImportElements ( object collection, Jayrock.Json.Conversion.ImportContext context, Jayrock.Json.JsonReader reader ) : void
collection object
context Jayrock.Json.Conversion.ImportContext
reader Jayrock.Json.JsonReader
return void

ImportFromArray() protected method

protected ImportFromArray ( Jayrock.Json.Conversion.ImportContext context, Jayrock.Json.JsonReader reader ) : object
context Jayrock.Json.Conversion.ImportContext
reader Jayrock.Json.JsonReader
return object