Add

KnownTypeSet.Add method

Aggiunge l’elemento specificatoType opporsi al set.

GettaArgumentException nei seguenti casi:

-type è zero.

-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 matrice.

-type è già stato aggiunto al set.

public void Add(Type type)
Parametro Tipo Descrizione
type Type UNType oggetto da aggiungere.

Guarda anche