Skip to content

095c501a 19ff c4b8 b9f3 3c2d234c042d

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

IUnitConvertible(TQuantity, TUnitSelector) Interface

Interface for implementing unit conversion methods.

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

Syntax

C#

public interface IUnitConvertible<out TQuantity, out TUnitSelector> : IUnitConvertible<TQuantity>, 
	IUnitConvertible

C#

public interface IUnitConvertible<out TQuantity, out TUnitSelector> : IUnitConvertible<TQuantity>, 
	IUnitConvertible

VB

Public Interface IUnitConvertible(Of Out TQuantity, Out TUnitSelector)
	Inherits IUnitConvertible(Of TQuantity), IUnitConvertible

VB

Public Interface IUnitConvertible(Of Out TQuantity, Out TUnitSelector)
	Inherits IUnitConvertible(Of TQuantity), IUnitConvertible

C++

generic<typename TQuantity, typename TUnitSelector>
public interface class IUnitConvertible : IUnitConvertible<TQuantity>, 
	IUnitConvertible

C++

generic<typename TQuantity, typename TUnitSelector>
public interface class IUnitConvertible : IUnitConvertible<TQuantity>, 
	IUnitConvertible

F#

type IUnitConvertible<'TQuantity, 'TUnitSelector> =  
    interface
        interface IUnitConvertible<'TQuantity>
        interface IUnitConvertible
    end

F#

type IUnitConvertible<'TQuantity, 'TUnitSelector> =  
    interface
        interface IUnitConvertible<'TQuantity>
        interface IUnitConvertible
    end

Type Parameters

 

TQuantity
The type of the value.
TUnitSelector
The type of the unit selector.
  The IUnitConvertible(TQuantity, TUnitSelector) type exposes the following members.

Methods

 

Name Description
Public method ToDouble(IUnit) Converts this object to a Double using the specified unit. (Inherited from IUnitConvertible.)
Public method ToDouble(SelectUnit(TUnitSelector)) Converts this object to a Double using the unit specified by the [!:TUnitSelector].
Public method ToQuantity Converts this object to a IQuantity using the unit specified by the IUnit. (Inherited from IUnitConvertible.)
Public method ToUnit(IUnit) Converts this object to a [!:TQuantity] using the specified unit. (Inherited from IUnitConvertible(TQuantity).)
Public method ToUnit(SelectUnit(TUnitSelector)) Converts this object to a [!:TQuantity] using the unit specified by the [!:TUnitSelector].
  Back to Top

See Also

Reference

Sundew.Quantities.Engine.Quantities Namespace

Clone this wiki locally