using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace VisionCommon { public class CommonPreProcessParam : ICloneCopy { public bool IsOverlayToCameraDisplay { get; set; } = true; public CommonPreProcessParam Clone() { return ((ICloneable)this).Clone() as CommonPreProcessParam; } public void CopyTo(CommonPreProcessParam target) { target.IsOverlayToCameraDisplay = this.IsOverlayToCameraDisplay; } object ICloneable.Clone() { var cloneObj = new CommonPreProcessParam(); CopyTo(cloneObj); return cloneObj; } } }