Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }
Пример #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));
 }