C# Class BTDB.EventStoreLayer.TypeSerializers

Inheritance: ITypeSerializers, ITypeSerializerMappingFactory
Datei anzeigen Open project: Bobris/BTDB Class Usage Examples

Public Methods

Method Description
CreateMapping ( ) : ITypeSerializersMapping
DescriptorOf ( Type objType ) : ITypeDescriptor
DescriptorOf ( object obj ) : ITypeDescriptor
ForgotAllTypesAndSerializers ( ) : void
GetComplexSaver ( ITypeDescriptor descriptor ) : Action
GetLoader ( ITypeDescriptor descriptor ) : Func
GetNewDescriptorSaver ( ITypeDescriptor descriptor ) : IDescriptorSerializerLiteContext>.Action
GetSimpleSaver ( ITypeDescriptor descriptor ) : object>.Action
IsSafeToLoad ( Type type ) : bool
LoadAsType ( ITypeDescriptor descriptor ) : Type
LoadAsType ( ITypeDescriptor descriptor, Type targetType ) : Type
MergeDescriptor ( ITypeDescriptor descriptor ) : ITypeDescriptor
SetTypeNameMapper ( ITypeNameMapper typeNameMapper ) : void
StoreDescriptor ( ITypeDescriptor descriptor, AbstractBufferedWriter writer, uint>.Func descriptor2Id ) : void
TypeSerializers ( ) : System
TypeSerializers ( ITypeNameMapper typeNameMapper ) : System
TypeToName ( Type type ) : string

Private Methods

Method Description
BuildFromType ( Type type ) : ITypeDescriptor
EnumDefaultTypes ( ) : ITypeDescriptor>>.IEnumerable
LoaderFactory ( ITypeDescriptor descriptor ) : Func
NameToType ( string name ) : Type
NewComplexSaver ( ITypeDescriptor descriptor ) : Action
NewDescriptorSaverFactory ( ITypeDescriptor descriptor ) : IDescriptorSerializerLiteContext>.Action
NewSimpleSaver ( ITypeDescriptor descriptor ) : object>.Action

Method Details

CreateMapping() public method

public CreateMapping ( ) : ITypeSerializersMapping
return ITypeSerializersMapping

DescriptorOf() public method

public DescriptorOf ( Type objType ) : ITypeDescriptor
objType System.Type
return ITypeDescriptor

DescriptorOf() public method

public DescriptorOf ( object obj ) : ITypeDescriptor
obj object
return ITypeDescriptor

ForgotAllTypesAndSerializers() public method

public ForgotAllTypesAndSerializers ( ) : void
return void

GetComplexSaver() public method

public GetComplexSaver ( ITypeDescriptor descriptor ) : Action
descriptor ITypeDescriptor
return Action

GetLoader() public method

public GetLoader ( ITypeDescriptor descriptor ) : Func
descriptor ITypeDescriptor
return Func

GetNewDescriptorSaver() public method

public GetNewDescriptorSaver ( ITypeDescriptor descriptor ) : IDescriptorSerializerLiteContext>.Action
descriptor ITypeDescriptor
return IDescriptorSerializerLiteContext>.Action

GetSimpleSaver() public method

public GetSimpleSaver ( ITypeDescriptor descriptor ) : object>.Action
descriptor ITypeDescriptor
return object>.Action

IsSafeToLoad() public method

public IsSafeToLoad ( Type type ) : bool
type System.Type
return bool

LoadAsType() public method

public LoadAsType ( ITypeDescriptor descriptor ) : Type
descriptor ITypeDescriptor
return System.Type

LoadAsType() public method

public LoadAsType ( ITypeDescriptor descriptor, Type targetType ) : Type
descriptor ITypeDescriptor
targetType System.Type
return System.Type

MergeDescriptor() public method

public MergeDescriptor ( ITypeDescriptor descriptor ) : ITypeDescriptor
descriptor ITypeDescriptor
return ITypeDescriptor

SetTypeNameMapper() public method

public SetTypeNameMapper ( ITypeNameMapper typeNameMapper ) : void
typeNameMapper ITypeNameMapper
return void

StoreDescriptor() public method

public StoreDescriptor ( ITypeDescriptor descriptor, AbstractBufferedWriter writer, uint>.Func descriptor2Id ) : void
descriptor ITypeDescriptor
writer BTDB.StreamLayer.AbstractBufferedWriter
descriptor2Id uint>.Func
return void

TypeSerializers() public method

public TypeSerializers ( ) : System
return System

TypeSerializers() public method

public TypeSerializers ( ITypeNameMapper typeNameMapper ) : System
typeNameMapper ITypeNameMapper
return System

TypeToName() public method

public TypeToName ( Type type ) : string
type System.Type
return string