Skip to content

M_CodeJam_NullableHelper_AsNullable__1

andrewvk edited this page Jun 23, 2016 · 5 revisions

NullableHelper.AsNullable(T) Method

[This is preliminary documentation and is subject to change.]

Returns nullable of specified value.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static Nullable<T> AsNullable<T>(
	this T value
)
where T : struct, new()

VB

<ExtensionAttribute>
Public Shared Function AsNullable(Of T As {Structure, New}) ( 
	value As T
) As Nullable(Of T)

F#

[<ExtensionAttribute>]
static member AsNullable : 
        value : 'T -> Nullable<'T>  when 'T : struct, new()

Parameters

 

value
Type: T
THe value

Type Parameters

 

T
Type of value

Return Value

Type: Nullable(T)
value wrapped in nullabe.

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

NullableHelper Class
CodeJam Namespace

Clone this wiki locally