Пример #1
0
        public override object Clone()
        {
            MemoryStream           stream = new MemoryStream();
            BinaryFormatSerializer binaryFormatSerializer = new BinaryFormatSerializer();

            binaryFormatSerializer.Serialize(this, stream);
            LinearPointer linearPointer = new LinearPointer();

            binaryFormatSerializer.Deserialize(linearPointer, stream);
            return(linearPointer);
        }
Пример #2
0
        public override object Clone()
        {
            MemoryStream           stream = new MemoryStream();
            BinaryFormatSerializer binaryFormatSerializer = new BinaryFormatSerializer();

            binaryFormatSerializer.Serialize(this, stream);
            GaugeImage gaugeImage = new GaugeImage();

            binaryFormatSerializer.Deserialize(gaugeImage, stream);
            return(gaugeImage);
        }
Пример #3
0
        public override object Clone()
        {
            MemoryStream           stream = new MemoryStream();
            BinaryFormatSerializer binaryFormatSerializer = new BinaryFormatSerializer();

            binaryFormatSerializer.Serialize(this, stream);
            CircularScale circularScale = new CircularScale();

            binaryFormatSerializer.Deserialize(circularScale, stream);
            return(circularScale);
        }
Пример #4
0
        public override object Clone()
        {
            MemoryStream           stream = new MemoryStream();
            BinaryFormatSerializer binaryFormatSerializer = new BinaryFormatSerializer();

            binaryFormatSerializer.Serialize(this, stream);
            Knob knob = new Knob();

            binaryFormatSerializer.Deserialize(knob, stream);
            return(knob);
        }