-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_NullableHelper_AsNullable__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
Returns nullable of specified value.
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.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).