Skip to content

M_CodeJam_NullableHelper_AsNullable__1

Andrew Koryavchenko edited this page Jun 17, 2018 · 5 revisions

NullableHelper.AsNullable(T) Method

Returns nullable of specified value.

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.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