There was an error while loading. Please reload this page.
Returns nullable of specified value.
Namespace: CodeJamAssembly: 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()
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).
NullableHelper ClassCodeJam Namespace