Interface ISerializer
An interface for serializing and deserializing JSON objects.
Namespace: Microsoft.Graph.CoreSDK.Serialization
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public interface ISerializer
Methods
View SourceDeserializeObject<T>(Stream)
Deserializes the stream to an object of the specified type.
Declaration
T DeserializeObject<T>(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream to deserialize. |
Returns
Type | Description |
---|---|
T | The deserialized object. |
Type Parameters
Name | Description |
---|---|
T | The deserialization type. |
DeserializeObject<T>(String)
Deserializes the JSON string to an object of the specified type.
Declaration
T DeserializeObject<T>(string inputString)
Parameters
Type | Name | Description |
---|---|---|
System.String | inputString | The JSON string to deserialize. |
Returns
Type | Description |
---|---|
T | The deserialized object. |
Type Parameters
Name | Description |
---|---|
T | The deserialization type. |
SerializeObject(Object)
Serializes the specified object into a JSON string.
Declaration
string SerializeObject(object serializeableObject)
Parameters
Type | Name | Description |
---|---|---|
System.Object | serializeableObject | The object to serialize. |
Returns
Type | Description |
---|---|
System.String | The JSON string. |