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);
        }
Beispiel #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);
        }
Beispiel #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);
        }
Beispiel #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);
        }