UnitConversion Constructor
Namespace: DevCase.Core.Math.ScienceAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public UnitConversion(
string fromUnitName,
string toUnitName,
Func<Amount, Amount> conversionFunction
)
Public Sub New (
fromUnitName As String,
toUnitName As String,
conversionFunction As Func(Of Amount, Amount)
)
Dim fromUnitName As String
Dim toUnitName As String
Dim conversionFunction As Func(Of Amount, Amount)
Dim instance As New UnitConversion(fromUnitName,
toUnitName, conversionFunction)
public:
UnitConversion(
String^ fromUnitName,
String^ toUnitName,
Func<Amount^, Amount^>^ conversionFunction
)
new :
fromUnitName : string *
toUnitName : string *
conversionFunction : Func<Amount, Amount> -> UnitConversion
No code example is currently available or this language may not be supported.
Parameters
- fromUnitName String
-
The name of the Unit to convert from
- toUnitName String
-
The name of the Unit to convert to.
- conversionFunction FuncAmount, Amount
-
The conversion function used to convert the Amount.