/// <summary> /// Returns an unitialised deep copy of the Emitter. /// </summary> /// <returns>A deep copy of the Emitter.</returns> protected override AbstractEmitter DeepCopy(AbstractEmitter exisitingInstance) { LineEmitter value = (exisitingInstance as LineEmitter) ?? new LineEmitter(); value.Length = this.Length; value.Rectilinear = this.Rectilinear; value.EmitBothWays = this.EmitBothWays; base.DeepCopy(value); return(value); }
/// <summary> /// Returns an unitialised deep copy of the Emitter. /// </summary> /// <returns>A deep copy of the Emitter.</returns> public override Emitter DeepCopy() { Emitter copy = new LineEmitter { Angle = this.Angle, Length = this.Length, Rectilinear = this.Rectilinear, EmitBothWays = this.EmitBothWays }; base.CopyBaseFields(copy); return copy; }
/// <summary> /// Returns an unitialised deep copy of the Emitter. /// </summary> /// <returns>A deep copy of the Emitter.</returns> public override Emitter DeepCopy() { Emitter copy = new LineEmitter { Angle = this.Angle, Length = this.Length, Rectilinear = this.Rectilinear, EmitBothWays = this.EmitBothWays }; base.CopyBaseFields(copy); return(copy); }