This documentation is archived and is not being maintained.

Compiler Error CS0735

Invalid type specified as an argument for TypeForwardedTo attribute

The following sample generates CS0735.

// CS735.cs
// compile with: /target:library
using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo(typeof(int[]))]   // CS0735
[assembly:TypeForwardedTo(typeof(string))]   // OK
Show: