Table of Contents

Interface IJsonSerializer

Namespace
Shift.Common
Assembly
Shift.Common.dll

Provides serialization and deserialization functionality to and from string values.

public interface IJsonSerializer
Extension Methods

Methods

Deserialize<T>(string)

Returns a object deserialized from the input string.

T Deserialize<T>(string value)

Parameters

value string

Returns

T

Type Parameters

T

Deserialize<T>(string, Type, bool)

Returns a object of the desired type, deserialized from the input string.

T Deserialize<T>(string value, Type type, bool ignoreAttributes)

Parameters

value string
type Type
ignoreAttributes bool

Returns

T

Type Parameters

T

GetClassName(Type)

Returns the assembly-qualified class name without the version, culture, and public key token.

string GetClassName(Type type)

Parameters

type Type

Returns

string

Serialize(object, string[], bool)

Returns the serialized string value for an object, excluding properties in the exclusions array.

string Serialize(object command, string[] exclusions, bool ignoreAttributes)

Parameters

command object
exclusions string[]
ignoreAttributes bool

Returns

string

SerializeChange(IChange)

Returns the serialized string value for a change.

string SerializeChange(IChange command)

Parameters

command IChange

Returns

string

SerializeCommand(ICommand)

Returns the serialized string value for a command.

string SerializeCommand(ICommand command)

Parameters

command ICommand

Returns

string

Serialize<T>(T)

Returns the serialized string value for an object of a specific type.

string Serialize<T>(T value)

Parameters

value T

Returns

string

Type Parameters

T