C# Class Cauterize.PrimitiveSupport

Show file Open project: sw17ch/Z-ARCHIVED-legacy-cauterize Class Usage Examples

Public Methods

Method Description
BytesFromValue ( object value ) : byte[]
IntToType ( Type t, int value ) : object
TypeFromBytes ( Type t, byte bytes ) : object
TypeToByteSize ( Type t ) : int
TypeToInt ( object value ) : int

Method Details

BytesFromValue() public static method

public static BytesFromValue ( object value ) : byte[]
value object
return byte[]

IntToType() public static method

public static IntToType ( Type t, int value ) : object
t System.Type
value int
return object

TypeFromBytes() public static method

public static TypeFromBytes ( Type t, byte bytes ) : object
t System.Type
bytes byte
return object

TypeToByteSize() public static method

public static TypeToByteSize ( Type t ) : int
t System.Type
return int

TypeToInt() public static method

public static TypeToInt ( object value ) : int
value object
return int