Interface ISerializer
Interfaces that represents a serializer.
Namespace: Evergine.Common.Serialization
Assembly: Evergine.Common.dll
Syntax
public interface ISerializer
Methods
Deserialize(Stream)
Deserializes the specified stream.
Declaration
object Deserialize(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
Returns
Type | Description |
---|---|
object | Deserialize object. |
DeserializeInto<T>(Stream, T)
Deserializes the specified stream.
Declaration
T DeserializeInto<T>(Stream stream, T existingObject)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
T | existingObject | The object to deserialize into. If null (the default) then a new object will be created. |
Returns
Type | Description |
---|---|
T | Deserialize object. |
Type Parameters
Name | Description |
---|---|
T | The type to be deserialized. |
Serialize(Stream, object)
Serializes the specified stream.
Declaration
void Serialize(Stream stream, object obj)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
object | obj | The object. |