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 SourceDeserialize(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. |
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. |