ConversionCacheExists Method

Gets an indication of whether a conversion exists between the Type of Unit in sourceType to targetType.

Definition

Namespace: InnerDrive.Quantitative
Assembly: InnerDrive.Quantitative (in InnerDrive.Quantitative.dll) Version: 5.2.9017.0
C#
public bool Exists(
	Type sourceType,
	Type targetType
)

Parameters

sourceType  Type
The Type of Unit that is the source of the conversion to be performed.
targetType  Type
The Type of Unit that is the target of the conversion to be performed.

Return Value

Boolean
true if there is a conversion from sourceType to targetType; otherwise false.

Exceptions

ArgumentExceptionThrown if sourceType is not a subclass of Unit.

See Also