Skip to content

167b3eec 01bc c752 0919 10f940fc0af8

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

IDerivedUnitRegistry.TryGetUnit Method

Tries to get the unit.

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

Syntax

C#

bool TryGetUnit(
	FlatRepresentation flatRepresentation,
	out DerivedUnit derivedUnit
)

C#

bool TryGetUnit(
	FlatRepresentation flatRepresentation,
	out DerivedUnit derivedUnit
)

VB

Function TryGetUnit ( 
	flatRepresentation As FlatRepresentation,
	<OutAttribute> ByRef derivedUnit As DerivedUnit
) As Boolean

VB

Function TryGetUnit ( 
	flatRepresentation As FlatRepresentation,
	<OutAttribute> ByRef derivedUnit As DerivedUnit
) As Boolean

C++

bool TryGetUnit(
	FlatRepresentation^ flatRepresentation, 
	[OutAttribute] DerivedUnit^% derivedUnit
)

C++

bool TryGetUnit(
	FlatRepresentation^ flatRepresentation, 
	[OutAttribute] DerivedUnit^% derivedUnit
)

F#

abstract TryGetUnit : 
        flatRepresentation : FlatRepresentation * 
        derivedUnit : DerivedUnit byref -> bool 

F#

abstract TryGetUnit : 
        flatRepresentation : FlatRepresentation * 
        derivedUnit : DerivedUnit byref -> bool 

Parameters

 

flatRepresentation
Type: Sundew.Quantities.Engine.Representations.Flat.FlatRepresentation
The flat representation.
derivedUnit
Type: Sundew.Quantities.Engine.Units.DerivedUnit
The found derived unit.

Return Value

Type: Boolean
true if the flat representation is found, otherwise false

See Also

Reference

IDerivedUnitRegistry Interface
Sundew.Quantities.Engine.Registration Namespace

Clone this wiki locally