Exemplo n.º 1
0
 /// <summary>
 /// Constructs a <see cref="StiffnessUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="StiffnessUnit"/></returns>
 public static StiffnessUnit Parse(string text)
 {
     return(UnitParser <StiffnessUnit> .Parse(text));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructs a <see cref="DensityUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text"></param>
 /// <returns>An instance of <see cref="DensityUnit"/></returns>
 public static DensityUnit Parse(string text)
 {
     return(UnitParser <DensityUnit> .Parse(text));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructs a <see cref="LengthUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text"></param>
 /// <returns>An instance of <see cref="LengthUnit"/></returns>
 public static LengthUnit Parse(string text)
 {
     return(UnitParser <LengthUnit> .Parse(text));
 }
 /// <summary>
 /// Constructs a <see cref="ForcePerUnitlessUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="ForcePerUnitlessUnit"/></returns>
 public static ForcePerUnitlessUnit Parse(string text)
 {
     return(UnitParser <ForcePerUnitlessUnit> .Parse(text));
 }
Exemplo n.º 5
0
 public static VoltageUnit Parse(string text)
 {
     return(UnitParser <VoltageUnit> .Parse(text));
 }
Exemplo n.º 6
0
 /// <summary>
 /// Constructs a <see cref="AngularSpeedUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text"></param>
 /// <returns>An instance of <see cref="AngularSpeedUnit"/></returns>
 public static AngularSpeedUnit Parse(string text)
 {
     return(UnitParser <AngularSpeedUnit> .Parse(text));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.AngleUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.AngleUnit"/></param>
 /// <param name="result">The parsed <see cref="AngleUnit"/></param>
 /// <returns>True if an instance of <see cref="AngleUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out AngleUnit result)
 {
     return(UnitParser <AngleUnit> .TryParse(text, out result));
 }
Exemplo n.º 8
0
 /// <summary>
 /// Constructs a <see cref="PressureUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="PressureUnit"/></returns>
 public static PressureUnit Parse(string text)
 {
     return(UnitParser <PressureUnit> .Parse(text));
 }
Exemplo n.º 9
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.PressureUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.PressureUnit"/></param>
 /// <param name="result">The parsed <see cref="PressureUnit"/></param>
 /// <returns>True if an instance of <see cref="PressureUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out PressureUnit result)
 {
     return(UnitParser <PressureUnit> .TryParse(text, out result));
 }
Exemplo n.º 10
0
 /// <summary>
 /// Constructs a <see cref="TorqueUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text"></param>
 /// <returns>An instance of <see cref="TorqueUnit"/></returns>
 public static TorqueUnit Parse(string text)
 {
     return(UnitParser <TorqueUnit> .Parse(text));
 }
Exemplo n.º 11
0
 public static PowerUnit Parse(string text)
 {
     return(UnitParser <PowerUnit> .Parse(text));
 }
Exemplo n.º 12
0
 /// <summary>
 /// Constructs a <see cref="SpecificVolumeUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="SpecificVolumeUnit"/></returns>
 public static SpecificVolumeUnit Parse(string text)
 {
     return(UnitParser <SpecificVolumeUnit> .Parse(text));
 }
Exemplo n.º 13
0
 /// <summary>
 /// Constructs a <see cref="UnitlessUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text"></param>
 /// <returns>An instance of <see cref="UnitlessUnit"/></returns>
 public static UnitlessUnit Parse(string text)
 {
     return(UnitParser <UnitlessUnit> .Parse(text));
 }
Exemplo n.º 14
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.StiffnessUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.StiffnessUnit"/></param>
 /// <param name="result">The parsed <see cref="StiffnessUnit"/></param>
 /// <returns>True if an instance of <see cref="StiffnessUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out StiffnessUnit result)
 {
     return(UnitParser <StiffnessUnit> .TryParse(text, out result));
 }
Exemplo n.º 15
0
 /// <summary>
 /// Constructs a <see cref="CatalyticActivityUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="CatalyticActivityUnit"/></returns>
 public static CatalyticActivityUnit Parse(string text)
 {
     return(UnitParser <CatalyticActivityUnit> .Parse(text));
 }
Exemplo n.º 16
0
 public static DataUnit Parse(string text)
 {
     return(UnitParser <DataUnit> .Parse(text));
 }
Exemplo n.º 17
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.CatalyticActivityUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.CatalyticActivityUnit"/></param>
 /// <param name="result">The parsed <see cref="CatalyticActivityUnit"/></param>
 /// <returns>True if an instance of <see cref="CatalyticActivityUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out CatalyticActivityUnit result)
 {
     return(UnitParser <CatalyticActivityUnit> .TryParse(text, out result));
 }
 /// <summary>
 /// Constructs a <see cref="ElectricalConductanceUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="ElectricalConductanceUnit"/></returns>
 public static ElectricalConductanceUnit Parse(string text)
 {
     return(UnitParser <ElectricalConductanceUnit> .Parse(text));
 }
Exemplo n.º 19
0
 /// <summary>
 /// Constructs a <see cref="AngleUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="AngleUnit"/></returns>
 public static AngleUnit Parse(string text)
 {
     return(UnitParser <AngleUnit> .Parse(text));
 }
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.ElectricalConductanceUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.ElectricalConductanceUnit"/></param>
 /// <param name="result">The parsed <see cref="ElectricalConductanceUnit"/></param>
 /// <returns>True if an instance of <see cref="ElectricalConductanceUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out ElectricalConductanceUnit result)
 {
     return(UnitParser <ElectricalConductanceUnit> .TryParse(text, out result));
 }
Exemplo n.º 21
0
 /// <summary>
 /// Constructs a <see cref="MassUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text"></param>
 /// <returns>An instance of <see cref="MassUnit"/></returns>
 public static MassUnit Parse(string text)
 {
     return(UnitParser <MassUnit> .Parse(text));
 }
Exemplo n.º 22
0
 /// <summary>
 /// Constructs a <see cref="SpecificEnergyUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="SpecificEnergyUnit"/></returns>
 public static SpecificEnergyUnit Parse(string text)
 {
     return(UnitParser <SpecificEnergyUnit> .Parse(text));
 }
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.ForcePerUnitlessUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.ForcePerUnitlessUnit"/></param>
 /// <param name="result">The parsed <see cref="ForcePerUnitlessUnit"/></param>
 /// <returns>True if an instance of <see cref="ForcePerUnitlessUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out ForcePerUnitlessUnit result)
 {
     return(UnitParser <ForcePerUnitlessUnit> .TryParse(text, out result));
 }
Exemplo n.º 24
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.SpecificEnergyUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.SpecificEnergyUnit"/></param>
 /// <param name="result">The parsed <see cref="SpecificEnergyUnit"/></param>
 /// <returns>True if an instance of <see cref="SpecificEnergyUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out SpecificEnergyUnit result)
 {
     return(UnitParser <SpecificEnergyUnit> .TryParse(text, out result));
 }
Exemplo n.º 25
0
 public static bool TryParse(string text, out VoltageUnit result)
 {
     return(UnitParser <VoltageUnit> .TryParse(text, out result));
 }
Exemplo n.º 26
0
 public static IlluminanceUnit Parse(string text)
 {
     return(UnitParser <IlluminanceUnit> .Parse(text));
 }
Exemplo n.º 27
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.DensityUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.DensityUnit"/></param>
 /// <param name="result">The parsed <see cref="DensityUnit"/></param>
 /// <returns>True if an instance of <see cref="DensityUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out DensityUnit result)
 {
     return(UnitParser <DensityUnit> .TryParse(text, out result));
 }
Exemplo n.º 28
0
 public static bool TryParse(string text, out IlluminanceUnit result)
 {
     return(UnitParser <IlluminanceUnit> .TryParse(text, out result));
 }
Exemplo n.º 29
0
 /// <summary>
 /// Creates an instance of <see cref="Gu.Units.LengthUnit"/> from its string representation
 /// </summary>
 /// <param name="text">The string representation of the <see cref="Gu.Units.LengthUnit"/></param>
 /// <param name="result">The parsed <see cref="LengthUnit"/></param>
 /// <returns>True if an instance of <see cref="LengthUnit"/> could be parsed from <paramref name="text"/></returns>
 public static bool TryParse(string text, out LengthUnit result)
 {
     return(UnitParser <LengthUnit> .TryParse(text, out result));
 }
Exemplo n.º 30
0
 /// <summary>
 /// Constructs a <see cref="VolumetricFlowUnit"/> from a string.
 /// Leading and trailing whitespace characters are allowed.
 /// </summary>
 /// <param name="text">The text representation of this unit.</param>
 /// <returns>An instance of <see cref="VolumetricFlowUnit"/></returns>
 public static VolumetricFlowUnit Parse(string text)
 {
     return(UnitParser <VolumetricFlowUnit> .Parse(text));
 }