Example #1
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Mass Parse(string str, Unit <Mass> defaultUnit = null)
 {
     return(Unit <Mass> .Parse(str, defaultUnit));
 }
Example #2
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Current Parse(string str, Unit <Current> defaultUnit = null)
 {
     return(Unit <Current> .Parse(str, defaultUnit));
 }
Example #3
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Velocity Parse(string str, Unit <Velocity> defaultUnit = null)
 {
     return(Unit <Velocity> .Parse(str, defaultUnit));
 }
Example #4
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Time Parse(string str, Unit <Time> defaultUnit = null)
 {
     return(Unit <Time> .Parse(str, defaultUnit));
 }
Example #5
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Distance Parse(string str, Unit <Distance> defaultUnit = null)
 {
     return(Unit <Distance> .Parse(str, defaultUnit));
 }
Example #6
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Ratio Parse(string str, Unit <Ratio> defaultUnit = null)
 {
     return(Unit <Ratio> .Parse(str, defaultUnit));
 }
Example #7
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Voltage Parse(string str, Unit <Voltage> defaultUnit = null)
 {
     return(Unit <Voltage> .Parse(str, defaultUnit));
 }
Example #8
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Acceleration Parse(string str, Unit <Acceleration> defaultUnit = null)
 {
     return(Unit <Acceleration> .Parse(str, defaultUnit));
 }
Example #9
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Angle Parse(string str, Unit <Angle> defaultUnit = null)
 {
     return(Unit <Angle> .Parse(str, defaultUnit));
 }
Example #10
0
 // these should be defined as convenience, but cannot be forced by interface
 public static Temperature Parse(string str, Unit <Temperature> defaultUnit = null)
 {
     return(Unit <Temperature> .Parse(str, defaultUnit));
 }