Baca dalam bahasa Inggris Edit

Bagikan melalui


Nullable<T>(T) Constructor

Definition

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

C#
public Nullable(T value);

Parameters

value
T

A value type.

Remarks

The Nullable<T> constructor initializes the HasValue property of the new Nullable<T> object to true, and the Value property to the value of the value parameter.

Applies to

Produk Versi
net-6.0 net-6.0