Add

KnownTypeSet.Add method

Aggiunge quanto specificatoType oggetto dell’insieme. LanciaArgumentException in i seguenti casi:

-type Ènullo.

-type rappresenta un tipo vuoto.

-type rappresenta un tipo invisibile, ovvero un tipo non pubblico o un tipo annidato pubblico che ha un tipo esterno non pubblico.

-type rappresenta un tipo generico.

-type rappresenta un tipo di array.

-type è già stato aggiunto al set.

public void Add(Type type)
ParametroTipoDescrizione
typeTypeUNType oggetto da aggiungere.

Guarda anche