Example #1
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.Unitless"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.Unitless"/></param>
 /// <param name="provider">Specifies the formatProvider to be used.</param>
 /// <returns>The <see cref="Gu.Units.Unitless"/> parsed from <paramref name="text"/></returns>
 public static Unitless Parse(string text, IFormatProvider provider)
 {
     return(QuantityParser.Parse <UnitlessUnit, Unitless>(text, From, NumberStyles.Float, provider));
 }
Example #2
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.MagneticFlux"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.MagneticFlux"/></param>
 /// <param name="styles">Specifies the <see cref="NumberStyles"/> to be used.</param>
 /// <returns>The <see cref="Gu.Units.MagneticFlux"/> parsed from <paramref name="text"/></returns>
 public static MagneticFlux Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <MagneticFluxUnit, MagneticFlux>(text, From, styles, CultureInfo.CurrentCulture));
 }
Example #3
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.LuminousIntensity"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.LuminousIntensity"/></param>
 /// <returns>The <see cref="Gu.Units.LuminousIntensity"/> parsed from <paramref name="text"/></returns>
 public static LuminousIntensity Parse(string text)
 {
     return(QuantityParser.Parse <LuminousIntensityUnit, LuminousIntensity>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture));
 }
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.Illuminance"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.Illuminance"/></param>
 /// <param name="styles">Specifies the <see cref="NumberStyles"/> to be used.</param>
 /// <returns>The <see cref="Gu.Units.Illuminance"/> parsed from <paramref name="text"/></returns>
 public static Illuminance Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <IlluminanceUnit, Illuminance>(text, From, styles, CultureInfo.CurrentCulture));
 }
 public static Conductivity Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <ConductivityUnit, Conductivity>(text, From, styles, CultureInfo.CurrentCulture));
 }
Example #6
0
 public static Power Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <PowerUnit, Power>(text, From, styles, CultureInfo.CurrentCulture));
 }
 public static AngularAcceleration Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <AngularAccelerationUnit, AngularAcceleration>(text, From, styles, CultureInfo.CurrentCulture));
 }
Example #8
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.Length"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.Length"/></param>
 /// <param name="styles">Specifies the <see cref="NumberStyles"/> to be used.</param>
 /// <param name="provider">Specifies the formatProvider to be used.</param>
 /// <returns>The <see cref="Gu.Units.Length"/> parsed from <paramref name="text"/></returns>
 public static Length Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <LengthUnit, Length>(text, From, styles, provider));
 }
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.SpecificVolume"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.SpecificVolume"/></param>
 /// <returns>The <see cref="Gu.Units.SpecificVolume"/> parsed from <paramref name="text"/></returns>
 public static SpecificVolume Parse(string text)
 {
     return(QuantityParser.Parse <SpecificVolumeUnit, SpecificVolume>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture));
 }
Example #10
0
 public static AngularSpeed Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <AngularSpeedUnit, AngularSpeed>(text, From, styles, provider));
 }
Example #11
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.Length"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.Length"/></param>
 /// <param name="styles">Specifies the <see cref="NumberStyles"/> to be used.</param>
 /// <returns>The <see cref="Gu.Units.Length"/> parsed from <paramref name="text"/></returns>
 public static Length Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <LengthUnit, Length>(text, From, styles, CultureInfo.CurrentCulture));
 }
Example #12
0
 public static AngularSpeed Parse(string text)
 {
     return(QuantityParser.Parse <AngularSpeedUnit, AngularSpeed>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture));
 }
 public static Pressure Parse(string text, IFormatProvider provider)
 {
     return(QuantityParser.Parse <PressureUnit, Pressure>(text, From, NumberStyles.Float, provider));
 }
 public static Pressure Parse(string text)
 {
     return(QuantityParser.Parse <PressureUnit, Pressure>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture));
 }
Example #15
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.Resistance"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.Resistance"/></param>
 /// <returns>The <see cref="Gu.Units.Resistance"/> parsed from <paramref name="text"/></returns>
 public static Resistance Parse(string text)
 {
     return(QuantityParser.Parse <ResistanceUnit, Resistance>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture));
 }
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.SpecificVolume"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.SpecificVolume"/></param>
 /// <param name="provider">Specifies the formatProvider to be used.</param>
 /// <returns>The <see cref="Gu.Units.SpecificVolume"/> parsed from <paramref name="text"/></returns>
 public static SpecificVolume Parse(string text, IFormatProvider provider)
 {
     return(QuantityParser.Parse <SpecificVolumeUnit, SpecificVolume>(text, From, NumberStyles.Float, provider));
 }
Example #17
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.Resistance"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.Resistance"/></param>
 /// <param name="provider">Specifies the formatProvider to be used.</param>
 /// <returns>The <see cref="Gu.Units.Resistance"/> parsed from <paramref name="text"/></returns>
 public static Resistance Parse(string text, IFormatProvider provider)
 {
     return(QuantityParser.Parse <ResistanceUnit, Resistance>(text, From, NumberStyles.Float, provider));
 }
Example #18
0
 public static Time Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <TimeUnit, Time>(text, From, styles, CultureInfo.CurrentCulture));
 }
Example #19
0
 public static Power Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <PowerUnit, Power>(text, From, styles, provider));
 }
Example #20
0
 public static Time Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <TimeUnit, Time>(text, From, styles, provider));
 }
 public static AngularAcceleration Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <AngularAccelerationUnit, AngularAcceleration>(text, From, styles, provider));
 }
Example #22
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.SolidAngle"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.SolidAngle"/></param>
 /// <param name="styles">Specifies the <see cref="NumberStyles"/> to be used.</param>
 /// <returns>The <see cref="Gu.Units.SolidAngle"/> parsed from <paramref name="text"/></returns>
 public static SolidAngle Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <SolidAngleUnit, SolidAngle>(text, From, styles, CultureInfo.CurrentCulture));
 }
Example #23
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.Illuminance"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.Illuminance"/></param>
 /// <param name="styles">Specifies the <see cref="NumberStyles"/> to be used.</param>
 /// <param name="provider">Specifies the formatProvider to be used.</param>
 /// <returns>The <see cref="Gu.Units.Illuminance"/> parsed from <paramref name="text"/></returns>
 public static Illuminance Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <IlluminanceUnit, Illuminance>(text, From, styles, provider));
 }
Example #24
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.SolidAngle"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.SolidAngle"/></param>
 /// <param name="styles">Specifies the <see cref="NumberStyles"/> to be used.</param>
 /// <param name="provider">Specifies the formatProvider to be used.</param>
 /// <returns>The <see cref="Gu.Units.SolidAngle"/> parsed from <paramref name="text"/></returns>
 public static SolidAngle Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <SolidAngleUnit, SolidAngle>(text, From, styles, provider));
 }
 public static Conductivity Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <ConductivityUnit, Conductivity>(text, From, styles, provider));
 }
 public static ForcePerUnitless Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <ForcePerUnitlessUnit, ForcePerUnitless>(text, From, styles, CultureInfo.CurrentCulture));
 }
Example #27
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.MagneticFlux"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.MagneticFlux"/></param>
 /// <param name="styles">Specifies the <see cref="NumberStyles"/> to be used.</param>
 /// <param name="provider">Specifies the formatProvider to be used.</param>
 /// <returns>The <see cref="Gu.Units.MagneticFlux"/> parsed from <paramref name="text"/></returns>
 public static MagneticFlux Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <MagneticFluxUnit, MagneticFlux>(text, From, styles, provider));
 }
 public static ForcePerUnitless Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <ForcePerUnitlessUnit, ForcePerUnitless>(text, From, styles, provider));
 }
Example #29
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.LuminousIntensity"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.LuminousIntensity"/></param>
 /// <param name="provider">Specifies the formatProvider to be used.</param>
 /// <returns>The <see cref="Gu.Units.LuminousIntensity"/> parsed from <paramref name="text"/></returns>
 public static LuminousIntensity Parse(string text, IFormatProvider provider)
 {
     return(QuantityParser.Parse <LuminousIntensityUnit, LuminousIntensity>(text, From, NumberStyles.Float, provider));
 }
Example #30
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.Unitless"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.Unitless"/></param>
 /// <returns>The <see cref="Gu.Units.Unitless"/> parsed from <paramref name="text"/></returns>
 public static Unitless Parse(string text)
 {
     return(QuantityParser.Parse <UnitlessUnit, Unitless>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture));
 }