Skip to main content
Nullable Constructor
 

Initializes a new instance of the Nullable structure to the specified value.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

Syntax
public Nullable(
	T value
)
public:
Nullable(
	T value
)
new : 
        value:'T -> Nullable
Public Sub New (
	value As T
)

Parameters

value
Type: T

A value type.

Remarks

The Nullable constructor initializes the property of the new Nullable object to true, and the property to the value of the value parameter.

Version Information
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top