Assembly: VM.dll This class is to represent the Unit.
Inheritance
object ← UnitExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Constructors
Unit()
Initializes a new instance of the Unit classUnit(Unit)
Initializes a new instance of the Unit classParameters
unitValue Unit
The unit
Unit(UnitType)
Initializes a new instance of the Unit classParameters
type UnitType
The type of unit
Unit(SerializationInfo, StreamingContext)
Initializes a new instance of the Unit classParameters
information SerializationInfo
The info.
context StreamingContext
The context
Properties
Angle
Gets or sets the angle.Property Value
stringForce
Gets or sets the force.Property Value
stringHandle
Gets the handle.Property Value
IntPtrLength
Gets or sets the length.Property Value
stringMass
Gets or sets the mass.Property Value
stringPower
Gets or sets the powerProperty Value
stringTemperature
Gets or sets the temperatureProperty Value
stringTime
Gets or sets the time.Property Value
stringWork
Gets or sets the workProperty Value
stringthis[string]
Gets or sets the unit by indexer.Property Value
stringMethods
ConvertTo(Unit, string)
Convert to.Parameters
referenceUnit Unit
The reference unit
stringType string
The type
Returns
double The convert dataDispose()
Equals(object)
Parameters
obj object
Returns
boolGetFactor(string)
Get factor for unit typeParameters
type string
The unit type
Returns
double The factorGetHashCode()
Returns
intInitialize(string)
Initializes a instance.Parameters
stringUnitPath string
The path of unit.
IsContain(string)
Contains unit.Parameters
stringType string
The type of unit.
Returns
bool true if contains unit type, otherwise false.Operators
operator ==(Unit, Unit)
Compare two unitsParameters
left Unit
The unit
right Unit
The unit to compare
Returns
bool true if two units are equal, otherwise false.operator !=(Unit, Unit)
Compare two unitsParameters
left Unit
The unit
right Unit
The unit to compare