using System.IO; namespace COM3D2.MeidoPhotoStudio.Plugin { public abstract class SimpleSerializer : ISimpleSerializer { void ISimpleSerializer.Serialize(object obj, BinaryWriter writer) => Serialize((T) obj, writer); object ISimpleSerializer.Deserialize(BinaryReader reader, SceneMetadata metadata) => Deserialize(reader, metadata); public abstract void Serialize(T obj, BinaryWriter writer); public abstract T Deserialize(BinaryReader reader, SceneMetadata metadata); } }