Microsoft.Bot.Builder.Calling.ObjectModel.Misc.Serializer Class Reference

Helper class for serializing/deserializing More...

Static Public Member Functions

static T DeserializeFromJson< T > (string json)
 Deserialize input string to object More...
 
static T DeserializeFromJToken< T > (JToken jToken)
 Deserialize from JToken More...
 
static JsonSerializerSettings GetSerializerSettings (Formatting formatting=Formatting.None)
 Returns default serializer settings. More...
 
static string SerializeToJson (object obj, bool forLogging=false)
 Serialize input object to string More...
 
static JToken SerializeToJToken (Object obj)
 Serialize to JToken More...
 

Detailed Description

Helper class for serializing/deserializing

Definition at line 14 of file Serializer.cs.

Member Function Documentation

static T Microsoft.Bot.Builder.Calling.ObjectModel.Misc.Serializer.DeserializeFromJson< T > ( string  json)
inlinestatic

Deserialize input string to object

Definition at line 40 of file Serializer.cs.

static T Microsoft.Bot.Builder.Calling.ObjectModel.Misc.Serializer.DeserializeFromJToken< T > ( JToken  jToken)
inlinestatic

Deserialize from JToken

Template Parameters
T
Parameters
jToken
Returns

Definition at line 51 of file Serializer.cs.

static JsonSerializerSettings Microsoft.Bot.Builder.Calling.ObjectModel.Misc.Serializer.GetSerializerSettings ( Formatting  formatting = Formatting.None)
inlinestatic

Returns default serializer settings.

Definition at line 59 of file Serializer.cs.

static string Microsoft.Bot.Builder.Calling.ObjectModel.Misc.Serializer.SerializeToJson ( object  obj,
bool  forLogging = false 
)
inlinestatic

Serialize input object to string

Definition at line 22 of file Serializer.cs.

static JToken Microsoft.Bot.Builder.Calling.ObjectModel.Misc.Serializer.SerializeToJToken ( Object  obj)
inlinestatic

Serialize to JToken

Parameters
obj
Returns

Definition at line 32 of file Serializer.cs.


The documentation for this class was generated from the following file: