Converter Class

The main converter.

Definition

Namespace: ConversionCalc
Assembly: ConversionCalc (in ConversionCalc.dll) Version: 25.1109.1402+460980fe794ed921231d4cff278ac7c37ae486a2
C#
public class Converter
Inheritance
Object    Converter

Constructors

Converter Create a new instance of the Converter item.
Converter(String) Create a new instance of the Converter item.

Properties

Data Get/Set a reference to the active conversion data catalog for this converter.

Methods

Convert(Double, String, String) Return the new version of the source value after it has been converted from the source unit to the target unit, using an implicit common domain shared between the source and target units.
Convert(ConversionDomainItem, Double, String, String) Return the new version of the source value after it has been converted from the source unit to the target unit.
Convert(String, Double, String, String) Return the conversion of the caller's source value from the source unit to the target unit within the specified domain.
Equals
(Inherited from Object)
Finalize
(Inherited from Object)
FindAllDefinitions Return all of the definitions where the unit name matches the caller's requested value.
FindDefinition Return a reference to the definition specified by the unit name.
FindDomain(String) Find and return the first domain where conversions for the specified unit is defined.
FindDomain(String, String) Find and return the first domain where conversions for both units are defined.
GetHashCode
(Inherited from Object)
GetType
(Inherited from Object)
HasDefinition Return a value indicating whether the provided definition contains a conversion for the specified unit.
InitializeData Initialize the data catalog for the specified session.
MemberwiseClone
(Inherited from Object)
OnDomainNotFound Raises the DomainNotFound event when a matching domain was not found for a referenced or implied domain.
OnMessageReady Raises the MessageReady event when a message has been emitted during a conversion.
OnSourceUnitNotFound Raises the SourceUnitNotFound event when the specified source unit name could not be found.
OnTargetUnitNotFound Raises the TargetUnitNotFound event when the specified target unit name could not be found.
ToString
(Inherited from Object)

Events

DomainNotFound Fired when a referenced or implied domain was not found for a conversion.
MessageReady Fired when a message has been emitted during a conversion.
SourceUnitNotFound Fired when the source unit for a conversion could not be found.
TargetUnitNotFound Fired when the target unit for a conversion could not be found.

See Also