示例#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));
 }
示例#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));
 }
示例#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));
 }
 public static VoltageUnit Parse(string text)
 {
     return(UnitParser <VoltageUnit> .Parse(text));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#11
0
 public static PowerUnit Parse(string text)
 {
     return(UnitParser <PowerUnit> .Parse(text));
 }
 /// <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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#16
0
 public static DataUnit Parse(string text)
 {
     return(UnitParser <DataUnit> .Parse(text));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
示例#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));
 }
 public static bool TryParse(string text, out VoltageUnit result)
 {
     return(UnitParser <VoltageUnit> .TryParse(text, out result));
 }
示例#26
0
 public static IlluminanceUnit Parse(string text)
 {
     return(UnitParser <IlluminanceUnit> .Parse(text));
 }
示例#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));
 }
示例#28
0
 public static bool TryParse(string text, out IlluminanceUnit result)
 {
     return(UnitParser <IlluminanceUnit> .TryParse(text, out result));
 }
示例#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));
 }
 /// <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));
 }