Nullable<T>(T) Construtor

Definição

Inicializa uma nova instância da estrutura Nullable<T> para o valor especificado.Initializes a new instance of the Nullable<T> structure to the specified value.

public:
 Nullable(T value);
public Nullable (T value);
new Nullable<'T (requires 'T : struct)> : 'T -> Nullable<'T (requires 'T : struct)>
Public Sub New (value As T)

Parâmetros

value
T

Um tipo de valor.A value type.

Comentários

O Nullable<T> construtor inicializa a HasValue Propriedade do novo Nullable<T> objeto para true e a Value propriedade para o valor do value parâmetro.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.

Aplica-se a