Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 4
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>
 /// <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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 9
0
 /// <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));
 }
Exemplo n.º 10
0
 public static AngularSpeed Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <AngularSpeedUnit, AngularSpeed>(text, From, styles, provider));
 }
Exemplo n.º 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));
 }
Exemplo n.º 12
0
 public static AngularSpeed Parse(string text)
 {
     return(QuantityParser.Parse <AngularSpeedUnit, AngularSpeed>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture));
 }
Exemplo n.º 13
0
 public static Pressure Parse(string text, IFormatProvider provider)
 {
     return(QuantityParser.Parse <PressureUnit, Pressure>(text, From, NumberStyles.Float, provider));
 }
Exemplo n.º 14
0
 public static Pressure Parse(string text)
 {
     return(QuantityParser.Parse <PressureUnit, Pressure>(text, From, NumberStyles.Float, CultureInfo.CurrentCulture));
 }
Exemplo n.º 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));
 }
Exemplo n.º 16
0
 /// <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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 18
0
 public static Time Parse(string text, NumberStyles styles)
 {
     return(QuantityParser.Parse <TimeUnit, Time>(text, From, styles, CultureInfo.CurrentCulture));
 }
Exemplo n.º 19
0
 public static Power Parse(string text, NumberStyles styles, IFormatProvider provider)
 {
     return(QuantityParser.Parse <PowerUnit, Power>(text, From, styles, provider));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 25
0
 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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));
 }