Errore del compilatore CS0729

Aggiornamento: novembre 2007

Messaggio di errore

Il tipo "type" è definito in questo assembly, ma è specificato un server d'inoltro dei tipi
Type 'type' is defined in this assembly, but a type forwarder is specified for it

Non è possibile utilizzare un server d'inoltro dei tipi per un tipo definito nello stesso assembly.

Esempio

Il seguente codice di esempio genera l'errore CS0729.

// CS0729.cs
// compile with: /target:library
using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo(typeof(TestClass))]   // CS0729
class TestClass {}