C# Class BlueCollar.JobSerializer

Performs serialization and de-serialization services for jobs.
Afficher le fichier Open project: ChadBurggraf/blue-collar Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CreateInstance ( Type type ) : object

Creates an IJob instance from the given type.

Method Details

Deserialize() public static méthode

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.
Résultat IJob

GetTypeName() public static méthode

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.
Résultat string

GetTypeName() public static méthode

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.
Résultat string

Serialize() public static méthode

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