Click or drag to resize

Area(Double, Unit, MetricExponent) Constructor

Creates a new instance of Area with a particular value and Unit assuming that value is already raised or lowered to the power of exponent.

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.0.8475.0
Syntax
C#
[JsonConstructorAttribute]
public Area(
	double value,
	Unit unit,
	MetricExponent exponent = MetricExponent.Unit
)

Parameters

value  Double
The value of the Area to use.
unit  Unit
The Unit to use.
exponent  MetricExponent  (Optional)
If applicable to unit, the MetricExponent that value is assumed to be already.
Exceptions
ExceptionCondition
IncompatibleUnitExceptionThrown if Area is not the type that the Unit applies to.
ArgumentNullExceptionThrown if unit is null.
Example
The following example creates a Area of 100 km²:
C#
Unit unit = new MeterSquare();
MetricExponent exponent = MetricExponent.Kilo;
double value = 100d;

Area kilometers = new Area(value, unit, exponent);
See Also