Skip to content

546e9404 f350 ccb0 f35d aadcb4f161bd

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

MechanicsExtensions.Newtons(TValue) Method

Gets the value as Newton.

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

Syntax

C#

public static Force Newtons<TValue>(
	this TValue value
)
where TValue : struct, new(), IComparable, IFormattable

C#

public static Force Newtons<TValue>(
	this TValue value
)
where TValue : struct, new(), IComparable, IFormattable

VB

<ExtensionAttribute>
Public Shared Function Newtons(Of TValue As {Structure, New, IComparable, IFormattable}) ( 
	value As TValue
) As Force

VB

<ExtensionAttribute>
Public Shared Function Newtons(Of TValue As {Structure, New, IComparable, IFormattable}) ( 
	value As TValue
) As Force

C++

public:
[ExtensionAttribute]
generic<typename TValue>
where TValue : value class, gcnew(), IComparable, IFormattable
static Force^ Newtons(
	TValue value
)

C++

public:
[ExtensionAttribute]
generic<typename TValue>
where TValue : value class, gcnew(), IComparable, IFormattable
static Force^ Newtons(
	TValue value
)

F#

[<ExtensionAttribute>]
static member Newtons : 
        value : 'TValue -> Force  when 'TValue : struct, new() and IComparable and IFormattable

F#

[<ExtensionAttribute>]
static member Newtons : 
        value : 'TValue -> Force  when 'TValue : struct, new() and IComparable and IFormattable

Parameters

 

value
Type: TValue
The force value.

Type Parameters

 

TValue
The type of the value.

Return Value

Type: Force
A new Force.

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

MechanicsExtensions Class
Sundew.Quantities.Mechanics Namespace

Clone this wiki locally