Edit

Share via


Compiler Error CS0148

The delegate 'delegate' does not have a valid constructor

You imported and used a managed program (one that uses the .NET runtime) that was created with another compiler. That compiler allowed an ill-formed delegate constructor. For more information, see Delegates.

Note

This warning is only reported during explicit Build or Rebuild operations. It does not appear during typing in the IDE as part of IntelliSense diagnostics. This means that if you fix the warning by using the field or removing it, the warning might persist in the error list until you build or rebuild the project again.