Compiler Error CS0735
Invalid type specified as an argument for TypeForwardedTo attribute
The following sample generates CS0735.
C#
// CS735.cs
// compile with: /target:library
using System.Runtime.CompilerServices;
[assembly:TypeForwardedTo(typeof(int[]))] // CS0735
[assembly:TypeForwardedTo(typeof(string))] // OK
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
.NET feedback
.NET is an open source project. Select a link to provide feedback: