Skip to content

66067fa7 ec71 a0f9 1f9f 996dd5a90cde

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

IUnitConvertible(TQuantity) 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> : IUnitConvertible

C#

public interface IUnitConvertible<out TQuantity> : IUnitConvertible

VB

Public Interface IUnitConvertible(Of Out TQuantity)
	Inherits IUnitConvertible

VB

Public Interface IUnitConvertible(Of Out TQuantity)
	Inherits IUnitConvertible

C++

generic<typename TQuantity>
public interface class IUnitConvertible : IUnitConvertible

C++

generic<typename TQuantity>
public interface class IUnitConvertible : IUnitConvertible

F#

type IUnitConvertible<'TQuantity> =  
    interface
        interface IUnitConvertible
    end

F#

type IUnitConvertible<'TQuantity> =  
    interface
        interface IUnitConvertible
    end

Type Parameters

 

TQuantity
The type of the quantity.
  The IUnitConvertible(TQuantity) type exposes the following members.

Methods

 

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

See Also

Reference

Sundew.Quantities.Engine.Quantities Namespace

Clone this wiki locally