Show / Hide Table of Contents

Class JsonSerializer

A Json implementation of ISerializer.

Inheritance
System.Object
JsonSerializer
Implements
ISerializer
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Serialization
Assembly: Sartorius.SAF.Serialization.dll
Syntax
[SerializerExport(Priority = 1)]
public class JsonSerializer : ISerializer
Remarks

This ISerializer implementation is exported via SerializerExportAttribute with priority 1.

Methods

View Source

Deserialize<T>(Stream)

Deserializes an object of type T from the specified stream.

Declaration
public T Deserialize<T>(Stream stream)
Parameters
Type Name Description
System.IO.Stream stream

The stream from which the serialized object is read.

Returns
Type Description
T
Type Parameters
Name Description
T

The type to deserialize.

View Source

Serialize(Stream, Object)

Serializes the specified graph to the specified stream.

Declaration
public void Serialize(Stream stream, object graph)
Parameters
Type Name Description
System.IO.Stream stream

The stream in which the serialized object is written.

System.Object graph

The graph to serialize.

Implements

ISerializer

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
In This Article
  • Methods
    • Deserialize<T>(Stream)
    • Serialize(Stream, Object)
  • Implements
  • Extension Methods
Back to top Generated by DocFX