Description
When using the source generator on newest DevExpress WinForms controls (using .NET Framework 4.8) the result can't be compiled because of some wrongly generated code. It seems that PaintEx signature differs from what the source generator assumes, so the result can't be compiled.
How to repro
- Install DevExpress WinForms components (23.2.4 as of time of writing) trial from here
- Clone https://github.com/kpCat/ObservableEventsDevexpressRepro
- Attempt to build the solution
Result
The following error pops up on compilation:
4>SourceClassDevExpress.XtraEditors.TextEdit-InstanceEvents.SourceGenerated.cs(440,13): Error CS0123 : No overloaded method for "Handler" that corresponds to the delegate "TextEditPaintExEventHandler".