C# Класс BlueCollar.JobSerializer

Performs serialization and de-serialization services for jobs.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateInstance ( Type type ) : object

Creates an IJob instance from the given type.

Описание методов

Deserialize() публичный статический Метод

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.
Результат IJob

GetTypeName() публичный статический Метод

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.
Результат string

GetTypeName() публичный статический Метод

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.
Результат string

Serialize() публичный статический Метод

Serializes the given IJob for storage.
public static Serialize ( IJob job ) : string
job IJob The to serialize.
Результат string