Search Results for

    Show / Hide Table of Contents

    Interface ISerializer

    Interface 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

    Deserialized 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

    Deserialized 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 to serialize.

    object obj

    The object to serialize into the stream.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX