Skip to content

c5f34493 646f 591d 21ab f5536958847f

Kim Hugener-Ohlsen edited this page May 28, 2016 · 2 revisions

IQuantity(TQuantity).CreateQuantity Method

Creates the quantity.

Namespace: Sundew.Quantities.Engine.Quantities
Assembly: Sundew.Quantities (in Sundew.Quantities.dll) Version: 1.0.2.0 (1.0.2.0)

Syntax

C#

TQuantity CreateQuantity(
	double value,
	IUnit unit
)

C#

TQuantity CreateQuantity(
	double value,
	IUnit unit
)

VB

Function CreateQuantity ( 
	value As Double,
	unit As IUnit
) As TQuantity

VB

Function CreateQuantity ( 
	value As Double,
	unit As IUnit
) As TQuantity

C++

TQuantity CreateQuantity(
	double value, 
	IUnit^ unit
)

C++

TQuantity CreateQuantity(
	double value, 
	IUnit^ unit
)

F#

abstract CreateQuantity : 
        value : float * 
        unit : IUnit -> 'TQuantity 

F#

abstract CreateQuantity : 
        value : float * 
        unit : IUnit -> 'TQuantity 

Parameters

 

value
Type: System.Double
The quantity value.
unit
Type: Sundew.Quantities.Engine.Representations.Hierarchical.Units.IUnit
The quantity unit.

Return Value

Type: TQuantity
A [!:TQuantity].

See Also

Reference

IQuantity(TQuantity) Interface
Sundew.Quantities.Engine.Quantities Namespace

Clone this wiki locally