Compiler Error CS1103
The first parameter of an extension method cannot be of type 'type'.
The first parameter of an extension method cannot be a pointer type.
The following example generates CS1103:
// cs1103.cs
public static class Extensions
{
public unsafe static char* Test(this char* charP) { return charP; } // CS1103
}
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: