-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_NullableHelper_AsNullable__1
andrewvk edited this page Jun 23, 2016
·
5 revisions
[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)
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()
- value
- Type: T
THe value
- T
- Type of value
Type: Nullable(T)
value wrapped in nullabe.
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).