Class PhysicalUnitDescription
Inheritance
System.Object
PhysicalUnitDescription
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.LanguagePlatform.Core.dll
public class PhysicalUnitDescription
Constructors
Declaration
public PhysicalUnitDescription()
Declaration
public PhysicalUnitDescription(PhysicalUnitDescription other)
Parameters
Declaration
public PhysicalUnitDescription(Unit u, UnitType ut, UnitSystem us, bool isCanonical, int magnitude, double conversionFactor, Unit conversionUnit, string name, string abbreviation)
Parameters
Type |
Name |
Description |
Unit |
u |
|
UnitType |
ut |
|
UnitSystem |
us |
|
System.Boolean |
isCanonical |
|
System.Int32 |
magnitude |
|
System.Double |
conversionFactor |
|
Unit |
conversionUnit |
|
System.String |
name |
|
System.String |
abbreviation |
|
Declaration
public PhysicalUnitDescription(Unit u, UnitType ut, UnitSystem us, bool isCanonical, int magnitude, double conversionFactor, Unit conversionUnit, string name, string abbreviation, string preferredAbbreviation)
Parameters
Type |
Name |
Description |
Unit |
u |
|
UnitType |
ut |
|
UnitSystem |
us |
|
System.Boolean |
isCanonical |
|
System.Int32 |
magnitude |
|
System.Double |
conversionFactor |
|
Unit |
conversionUnit |
|
System.String |
name |
|
System.String |
abbreviation |
|
System.String |
preferredAbbreviation |
|
Properties
Declaration
public string Abbreviations { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string Category { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public double ConversionFactor { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public Unit ConversionUnit { get; set; }
Property Value
Declaration
public List<Pair<string>> CultureSpecificAbbreviations { get; set; }
Property Value
Type |
Description |
System.Collections.Generic.List<Pair<System.String>> |
|
Declaration
public bool IsCanonical { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public int Magnitude { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public Unit Unit { get; set; }
Property Value
Declaration
public UnitSystem UnitSystem { get; set; }
Property Value
Declaration
public UnitType UnitType { get; set; }
Property Value
Methods
Declaration
public string GetCultureSpecificAbbreviations(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
Declaration
public string GetPreferredAbbreviation(CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.String |
|
Declaration
public bool HasAbbreviation(string abbr)
Parameters
Type |
Name |
Description |
System.String |
abbr |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool HasAbbreviation(string abbr, CultureInfo culture)
Parameters
Type |
Name |
Description |
System.String |
abbr |
|
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Boolean |
|