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