public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || GetType() != o.GetType())
            {
                return(false);
            }
            var that = (StreamSerializerAdapter <T>)o;

            if (serializer != null ? !serializer.Equals(that.serializer) : that.serializer != null)
            {
                return(false);
            }
            return(true);
        }