Compiler Error CS0264

Partial declarations of 'type' must have the same type parameter names in the same order

This error occurs if you are defining a generic type in partial declarations and the type parameters are not consistent in name or order throughout all of the partial declarations. To get rid of this error, check the type parameters for each partial declaration and make sure the same name and order of parameters is used. For more information, see Partial Classes and Methods (C# Programming Guide).and Generic Type Parameters (C# Programming Guide).

Example

The following example generates CS0264.

// CS0264.cs

partial class MyClass<T>  // CS0264
{
}

partial class MyClass <MyType>
{
}