'<procedurename>' cannot override '<baseprocedurename>' because they differ by type parameter constraints

A generic procedure attempts to override a generic base class procedure, but they have different constraint lists on their type parameters.

To override a base class procedure, the overriding procedure must match not only the complete signature of the base class procedure, but also the access level of the procedure and the passing mechanism of each parameter.

To override a generic base class procedure, the overriding procedure must additionally match the number of type parameters and the constraint list of each one.

For more information on overriding requirements, see Overrides.

Error ID: BC32077

To correct this error

  • If you intend to override the base class procedure, revise the type parameter constraints to exactly match those of the base class procedure.

  • If the type parameter constraints must remain as you have them, you cannot override the base class procedure. Remove the Overrides keyword from the declaration.

See Also

Concepts

Generic Types in Visual Basic