Skip to content

bee4922b 4cae 5f79 b42f bed26627707f

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

QuantityExtensions.GetInterval(TQuantity) Method (TQuantity, Double)

Gets the interval.

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

Syntax

C#

public static Interval<TQuantity> GetInterval<TQuantity>(
	this TQuantity quantity,
	double length
)
where TQuantity : IQuantity

C#

public static Interval<TQuantity> GetInterval<TQuantity>(
	this TQuantity quantity,
	double length
)
where TQuantity : IQuantity

VB

<ExtensionAttribute>
Public Shared Function GetInterval(Of TQuantity As IQuantity) ( 
	quantity As TQuantity,
	length As Double
) As Interval(Of TQuantity)

VB

<ExtensionAttribute>
Public Shared Function GetInterval(Of TQuantity As IQuantity) ( 
	quantity As TQuantity,
	length As Double
) As Interval(Of TQuantity)

C++

public:
[ExtensionAttribute]
generic<typename TQuantity>
where TQuantity : IQuantity
static Interval<TQuantity>^ GetInterval(
	TQuantity quantity, 
	double length
)

C++

public:
[ExtensionAttribute]
generic<typename TQuantity>
where TQuantity : IQuantity
static Interval<TQuantity>^ GetInterval(
	TQuantity quantity, 
	double length
)

F#

[<ExtensionAttribute>]
static member GetInterval : 
        quantity : 'TQuantity * 
        length : float -> Interval<'TQuantity>  when 'TQuantity : IQuantity

F#

[<ExtensionAttribute>]
static member GetInterval : 
        quantity : 'TQuantity * 
        length : float -> Interval<'TQuantity>  when 'TQuantity : IQuantity

Parameters

 

quantity
Type: TQuantity
The quantity.
length
Type: System.Double
The length.

Type Parameters

 

TQuantity
The type of the quantity.

Return Value

Type: Interval(TQuantity)
The range.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

QuantityExtensions Class
GetInterval Overload
Sundew.Quantities Namespace

Clone this wiki locally