public override object Clone() { MemoryStream stream = new MemoryStream(); BinaryFormatSerializer binaryFormatSerializer = new BinaryFormatSerializer(); binaryFormatSerializer.Serialize(this, stream); GaugeLabel gaugeLabel = new GaugeLabel(); binaryFormatSerializer.Deserialize(gaugeLabel, stream); return(gaugeLabel); }
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); }
public override object Clone() { MemoryStream stream = new MemoryStream(); BinaryFormatSerializer binaryFormatSerializer = new BinaryFormatSerializer(); binaryFormatSerializer.Serialize(this, stream); CircularRange circularRange = new CircularRange(); binaryFormatSerializer.Deserialize(circularRange, stream); return(circularRange); }
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); }