Interface ISerializer

public interface ISerializer

Serialization interface that supports serialize and deserialize methods.

Namespace

Google.Apis

Assembly

Google.Apis.Core.dll

Properties

Format

string Format { get; }

Gets the application format this serializer supports (e.g. "json", "xml", etc.).

Property Value
TypeDescription
String

Methods

Deserialize(String, Type)

object Deserialize(string input, Type type)

Deserializes the string into an object.

Parameters
TypeNameDescription
Stringinput
Typetype
Returns
TypeDescription
Object

Deserialize<T>(Stream)

T Deserialize<T>(Stream input)

Deserializes the stream into an object.

Parameter
TypeNameDescription
Streaminput
Returns
TypeDescription
T
Type Parameter
NameDescription
T

Deserialize<T>(String)

T Deserialize<T>(string input)

Deserializes the string into an object.

Parameter
TypeNameDescription
Stringinput
Returns
TypeDescription
T
Type Parameter
NameDescription
T

Serialize(Object)

string Serialize(object obj)

Serializes the specified object into a string.

Parameter
TypeNameDescription
Objectobj
Returns
TypeDescription
String

Serialize(Object, Stream)

void Serialize(object obj, Stream target)

Serializes the specified object into a Stream.

Parameters
TypeNameDescription
Objectobj
Streamtarget

Extension Method