private double _measurePercent; public double MeasurePercent { get { if (double.IsNaN(_measurePercent) || double.IsInfinity(_measurePercent)) throw new Exception("..."); return _measurePercent; } set { if(value > 100.0f || value < 0.0f) throw new Exception("..."); _measurePercent = value; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)