C# Class Simpl.Serialization.Types.Scalar.BooleanType

Represents a scalar value of True or False
Inheritance: ScalarType
Show file Open project: ecologylab/simplCSharp

Public Methods

Method Description
BooleanType ( ) : System

Calls the parent constructor for int type

BooleanType ( Type type ) : System

GetInstance ( string value, string formatStrings, IScalarUnmarshallingContext scalarUnmarshallingContext ) : object

IsDefaultValue ( FieldInfo field, Object context ) : bool

Marshall ( object instance, TranslationContext context = null ) : string
NeedsJsonQuotationWrap ( ) : bool
SimplEquals ( object left, object right ) : bool

Method Details

BooleanType() public method

Calls the parent constructor for int type
public BooleanType ( ) : System
return System

BooleanType() public method

public BooleanType ( Type type ) : System
type System.Type
return System

GetInstance() public method

public GetInstance ( string value, string formatStrings, IScalarUnmarshallingContext scalarUnmarshallingContext ) : object
value string
formatStrings string
scalarUnmarshallingContext IScalarUnmarshallingContext
return object

IsDefaultValue() public method

public IsDefaultValue ( FieldInfo field, Object context ) : bool
field System.Reflection.FieldInfo
context Object
return bool

Marshall() public method

public Marshall ( object instance, TranslationContext context = null ) : string
instance object
context Simpl.Serialization.Context.TranslationContext
return string

NeedsJsonQuotationWrap() public method

public NeedsJsonQuotationWrap ( ) : bool
return bool

SimplEquals() public method

public SimplEquals ( object left, object right ) : bool
left object
right object
return bool