public ApproxMeasurement(string displayText, StructuredMeasurement measurement)
 {
     if (string.IsNullOrEmpty(displayText) && measurement != null)
     {
         displayText = measurement.ToString();
     }
     if (string.IsNullOrEmpty(displayText))
     {
         throw new ArgumentException("displayText");
     }
     Display = displayText;
     Measurement = measurement;
 }
 public ApproxMeasurement(string displayText, StructuredMeasurement measurement)
 {
     if (string.IsNullOrEmpty(displayText) && measurement != null)
     {
         displayText = measurement.ToString();
     }
     if (string.IsNullOrEmpty(displayText))
     {
         throw new ArgumentException("displayText");
     }
     Display     = displayText;
     Measurement = measurement;
 }
Example #3
0
        public StructuredNameValue(CodedValue name, StructuredMeasurement measurement)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            if (measurement == null)
            {
                throw new ArgumentNullException("value");
            }

            Name  = name;
            Value = measurement;
        }
        public StructuredNameValue(CodedValue name, StructuredMeasurement measurement)
        {
            if (name == null)
            {
                throw new ArgumentNullException("name");
            }

            if (measurement == null)
            {
                throw new ArgumentNullException("value");
            }

            Name = name;
            Value = measurement;
        }