﻿using System.IO;

namespace Gigobyte.Mockaroo.Serialization
{
    public interface ISerializable
    {
        Stream Serialize();

        void Deserialize(Stream stream);
    }
}
﻿using System.IO;

namespace Gigobyte.Mockaroo.Serialization
{
    public interface ISerializable
    {
        Stream Serialize();

        void Deserialize(byte[] bytes);

        void Deserialize(Stream stream);
    }
}
Add new overload to the Deserialize method
Add new overload to the Deserialize method
