Compiler Error CS1103

Visual Studio 2008

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
} 

Community Additions

ADD
Show: