public sSystemMetric(SystemMetricTypes type, MetricUnits unit, long val) { _unit = unit; _type = type; _val = val; _additional = null; }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, long val, string additional) { _unit = unit; _type = type; _val = val; _additional = additional; if (_additional.Length > 20) { _additional = _additional.Substring(0, 17) + "..."; } }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, decimal val, string additional) : this(type, unit, (long)Math.Floor(val), additional) { }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, float val, string additional) : this(type, unit, (decimal)val, additional) { }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, decimal val) : this(type, unit, (long)Math.Floor(val)) { }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, float val) : this(type, unit, (decimal)val) { }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, decimal val, string additional): this(type,unit,(long)Math.Floor(val),additional) { }
internal MetricUnitAttribute(MetricUnits metricUnits) { MetricUnits = metricUnits; }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, float val,string additional) : this(type, unit, (decimal)val,additional) { }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, long val,string additional) { _unit = unit; _type = type; _val = val; _additional = additional; if (_additional.Length > 20) _additional = _additional.Substring(0, 17) + "..."; }
public sSystemMetric(SystemMetricTypes type, MetricUnits unit, decimal val) : this(type,unit,(long)Math.Floor(val)) { }