C# Class BlueCollar.JobSerializer

Performs serialization and de-serialization services for jobs.
Datei anzeigen Open project: ChadBurggraf/blue-collar Class Usage Examples

Public Methods

Method Description
Deserialize ( string typeName, string data ) : IJob

De-serializes an IJob instance from the given type name and serialized data.

GetTypeName ( Type type ) : string

Gets the given type's name as a string.

GetTypeName ( object value ) : string

Gets the given value's type name as a string.

Serialize ( IJob job ) : string

Serializes the given IJob for storage.

Private Methods

Method Description
CreateInstance ( Type type ) : object

Creates an IJob instance from the given type.

Method Details

Deserialize() public static method

De-serializes an IJob instance from the given type name and serialized data.
public static Deserialize ( string typeName, string data ) : IJob
typeName string The name of the type to create the instance from.
data string The serialized job data to de-serialize.
return IJob

GetTypeName() public static method

Gets the given type's name as a string.
public static GetTypeName ( Type type ) : string
type System.Type The type to get the name of.
return string

GetTypeName() public static method

Gets the given value's type name as a string.
public static GetTypeName ( object value ) : string
value object The value to get the type name of.
return string

Serialize() public static method

Serializes the given IJob for storage.
public static Serialize ( IJob job ) : string
job IJob The to serialize.
return string