This documentation is archived and is not being maintained.
Nullable<T> Implicit Conversion (T to Nullable<T>)
Visual Studio 2010
Creates a new Nullable<T> object initialized to a specified value.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- value
- Type: T
A value type.
Return Value
Type: System::Nullable<T>A Nullable<T> object whose Value property is initialized with the value parameter.
If the value parameter is not nullptr, the Value property of the new Nullable<T> value is initialized to the value parameter and the HasValue property is initialized to true.
If the value parameter is nullptr, the Value property of the new Nullable<T> value is initialized to the default value, which is the value that is all binary zeroes, and the HasValue property is initialized to false.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: