C# Class BTDB.FieldHandler.EnumFieldHandler

Inheritance: IFieldHandler
Show file Open project: Bobris/BTDB Class Usage Examples

Public Methods

Method Description
EnumFieldHandler ( Type enumType ) : System
EnumFieldHandler ( byte configuration ) : System
FreeContent ( IILGen ilGenerator, Action pushReaderOrCtx ) : bool
HandledType ( ) : Type
IsCompatibleWith ( Type type ) : bool
IsCompatibleWith ( Type type, FieldHandlerOptions options ) : bool
Load ( IILGen ilGenerator, Action pushReaderOrCtx ) : void
NeedsCtx ( ) : bool
Save ( IILGen ilGenerator, Action pushWriterOrCtx, Action pushValue ) : void
Skip ( IILGen ilGenerator, Action pushReaderOrCtx ) : void
SpecializeLoadForType ( Type type, IFieldHandler typeHandler ) : IFieldHandler
SpecializeSaveForType ( Type type ) : IFieldHandler

Private Methods

Method Description
IsFlagsEnum ( Type type ) : bool
IsSignedEnum ( Type enumType ) : bool

Method Details

EnumFieldHandler() public method

public EnumFieldHandler ( Type enumType ) : System
enumType System.Type
return System

EnumFieldHandler() public method

public EnumFieldHandler ( byte configuration ) : System
configuration byte
return System

FreeContent() public method

public FreeContent ( IILGen ilGenerator, Action pushReaderOrCtx ) : bool
ilGenerator IILGen
pushReaderOrCtx Action
return bool

HandledType() public method

public HandledType ( ) : Type
return System.Type

IsCompatibleWith() public static method

public static IsCompatibleWith ( Type type ) : bool
type System.Type
return bool

IsCompatibleWith() public method

public IsCompatibleWith ( Type type, FieldHandlerOptions options ) : bool
type System.Type
options FieldHandlerOptions
return bool

Load() public method

public Load ( IILGen ilGenerator, Action pushReaderOrCtx ) : void
ilGenerator IILGen
pushReaderOrCtx Action
return void

NeedsCtx() public method

public NeedsCtx ( ) : bool
return bool

Save() public method

public Save ( IILGen ilGenerator, Action pushWriterOrCtx, Action pushValue ) : void
ilGenerator IILGen
pushWriterOrCtx Action
pushValue Action
return void

Skip() public method

public Skip ( IILGen ilGenerator, Action pushReaderOrCtx ) : void
ilGenerator IILGen
pushReaderOrCtx Action
return void

SpecializeLoadForType() public method

public SpecializeLoadForType ( Type type, IFieldHandler typeHandler ) : IFieldHandler
type System.Type
typeHandler IFieldHandler
return IFieldHandler

SpecializeSaveForType() public method

public SpecializeSaveForType ( Type type ) : IFieldHandler
type System.Type
return IFieldHandler