Class SerializerService
Inheritance
System.Object
SerializerService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ArtOfTest.Common.Design
Assembly: ArtOfTest.WebAii.Design.dll
Syntax
public class SerializerService : ISerializerService
Constructors
SerializerService()
Declaration
public SerializerService()
Properties
SerializerSettings
Declaration
public JsonSerializerSettings SerializerSettings { get; }
Property Value
Newtonsoft.Json.JsonSerializerSettings
|
Methods
DeserializeFromJSON<T>(String, Boolean)
Declaration
public T DeserializeFromJSON<T>(string serializedObject, bool autoLoadTypesFromAssemblies = true)
Parameters
System.String
serializedObject
|
System.Boolean
autoLoadTypesFromAssemblies
|
Returns
T
|
Type Parameters
T
|
DeserializeFromJSON<T>(String, IEnumerable<Type>)
Declaration
public T DeserializeFromJSON<T>(string serializedObject, IEnumerable<Type> knownTypes)
Parameters
System.String
serializedObject
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
Returns
T
|
Type Parameters
T
|
GetFullLoaderSettings()
Declaration
public static JsonSerializerSettings GetFullLoaderSettings()
Returns
Newtonsoft.Json.JsonSerializerSettings
|
SerializeToJSON(Object, Boolean)
Declaration
public string SerializeToJSON(object objectToSerialize, bool autoLoadTypesFromAssemblies = true)
Parameters
System.Object
objectToSerialize
|
System.Boolean
autoLoadTypesFromAssemblies
|
Returns
System.String
|
SerializeToJSON(Object, IEnumerable<Type>)
Declaration
public string SerializeToJSON(object objectToSerialize, IEnumerable<Type> knownTypes)
Parameters
System.Object
objectToSerialize
|
System.Collections.Generic.IEnumerable<System.Type>
knownTypes
|
Returns
System.String
|