예제 #1
0
 Frequency(double numericValue, FrequencyUnit unit)
 {
     _value = numericValue;
     _unit  = unit;
 }
예제 #2
0
 public Frequency(double hertz)
 {
     _value = Convert.ToDouble(hertz);
     _unit  = BaseUnit;
 }
 internal static string ToSerializedValue(this FrequencyUnit?value)
 {
     return(value == null ? null : ((FrequencyUnit)value).ToSerializedValue());
 }
예제 #4
0
        // Windows Runtime Component requires a default constructor
#if WINDOWS_UWP
        public Frequency()
        {
            _value = 0;
            _unit  = BaseUnit;
        }