Show / Hide Table of Contents

Interface ISyncSerializer

Interface for a synchronous serializer.

Namespace: Kephas.Serialization
Assembly: Kephas.Core.dll
Syntax
public interface ISyncSerializer
Remarks

Typically, a serializer supporting synchronous serialization will implement this interface too.

Methods

| Improve this Doc View Source

Deserialize(TextReader, ISerializationContext)

Deserializes an object.

Declaration
object Deserialize(TextReader textReader, ISerializationContext context = null)
Parameters
Type Name Description
System.IO.TextReader textReader

The System.IO.TextReader containing the serialized object.

ISerializationContext context

The context.

Returns
Type Description
System.Object

The deserialized object.

| Improve this Doc View Source

Serialize(Object, TextWriter, ISerializationContext)

Serializes the provided object.

Declaration
void Serialize(object obj, TextWriter textWriter, ISerializationContext context = null)
Parameters
Type Name Description
System.Object obj

The object.

System.IO.TextWriter textWriter

The System.IO.TextWriter used to write the object content.

ISerializationContext context

The context.

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX