Add

KnownTypeSet.Add method

Agrega lo especificadoType objeto al conjunto. LanzaArgumentException en los siguientes casos:

-type esnulo.

-type representa un tipo vacío.

-type representa un tipo invisible, es decir, un tipo no público o un tipo anidado público que tiene un tipo externo no público.

-type representa un tipo genérico.

-type representa un tipo de matriz.

-type ya se ha agregado al conjunto.

public void Add(Type type)
ParámetroEscribeDescripción
typeTypeAType objeto a agregar.

Ver también