Click or drag to resize

SIUnit Class

Represents an SI (Système international) unit.
Inheritance Hierarchy
SystemObject
  Altaxo.UnitsSIUnit
    More

Namespace: Altaxo.Units
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public class SIUnit : IUnit, IEquatable<SIUnit>, 
	IEquatable<IUnit>

The SIUnit type exposes the following members.

Constructors
 NameDescription
Public methodSIUnit Constructor of the SI unit.
Top
Properties
 NameDescription
Public propertyExponentAmpere Gets the exponent for the Ampere component.
Public propertyExponentCandela Gets the exponent for the candela component.
Public propertyExponentKelvin Gets the exponent for the Kelvin component.
Public propertyExponentKilogram Gets the exponent for the kilogram component.
Public propertyExponentMetre Gets the exponent for the metre component.
Public propertyExponentMole Gets the exponent for the mole component.
Public propertyExponentSecond Gets the exponent for the second component.
Public propertyNameFull name of the unit.
Public propertyPrefixes Returns a list of possible prefixes for this unit (like µ, m, k, M, G..).
Public propertyShortCutUsual shortcut of the unit.
Top
Methods
 NameDescription
Public methodEquals(IUnit) Compares this unit with another unit obj and returns true if both are equal. To be equal, the other unit has to be (i) a SI unit, and (ii) the same name. Thus, J (Joule) and Nm (Newtonmeter) are not considered equal.
Public methodEquals(Object) Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object))
Public methodEquals(SIUnit) Determines whether this instance and another specified SIUnit object have the same exponents for all base units. Two SI units are considered equal if the exponents are equal, independently of the unit name. This means e.g. that J (Joule), Nm, and Ws are considered equal.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFromSIUnit Converts x (in SI units) to the corresponding value in this unit.
Public methodGetHashCode Returns a hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsCompatibleTo Checks whether this SIUnit is compatible with the dimensions described by the provided UnitDescriptionAttribute.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToSIUnit Converts x to the corresponding SI unit.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Operators
 NameDescription
Public operatorStatic memberDivision(SIUnit, SIUnit) Divides two SI units by subtracting the exponents of the divisor from the dividend.
Public operatorStatic memberEquality(SIUnit, IUnit) Compares an SIUnit with an IUnit for equality.
Public operatorStatic memberEquality(SIUnit, SIUnit) Determines whether two SIUnit instances are equal by comparing their exponents.
Public operatorStatic memberInequality(SIUnit, IUnit) Determines whether an SIUnit and an IUnit are not equal.
Public operatorStatic memberInequality(SIUnit, SIUnit) Determines whether two SIUnit instances are not equal.
Public operatorStatic memberMultiply(SIUnit, SIUnit) Multiplies two SI units together by adding their corresponding exponents.
Top
See Also
Inheritance Hierarchy