Interface IJsonSerializer
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
valuestring
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
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
typeType
Returns
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
Returns
SerializeChange(IChange)
Returns the serialized string value for a change.
string SerializeChange(IChange command)
Parameters
commandIChange
Returns
SerializeCommand(ICommand)
Returns the serialized string value for a command.
string SerializeCommand(ICommand command)
Parameters
commandICommand
Returns
Serialize<T>(T)
Returns the serialized string value for an object of a specific type.
string Serialize<T>(T value)
Parameters
valueT
Returns
Type Parameters
T