public constructor UnitAttribute.UnitAttribute

Brief

Constructor for the unit that has more than one names

Declaration
C#
  UnitAttribute (string name, string alternativeName, int defaultAccuracy)

Parameters
name

The name of the unit

alternativeName

The alternative name (e.g. 5in and 5" are two options to specify inches)

defaultAccuracy

The default accuracy (number of digits after decimal point)

Declared in UnitAttribute

back