When trying out VB + ImageSharp I run into strange compiler errors.
1_ImageSharp.cs
works fine in C# but the same program in VB 2_ImageSharp.vb
produces the errors:
2>C:\code\2_ImageSharp.vb(7,34): error BC32044: Type argument 'Rgba32' does not inherit from or implement the constraint type '?'.
2>C:\code\2_ImageSharp.vb(7,34): error BC30649: '' is an unsupported type.
The error message is confusing and I don't know how to fix it. I can work around it by creating a C# project that creates the image and call it from VB
Problem comes in here:
Specifically, the unmanaged constraint.
VB don't DO no unmanaged stuff.
VB is above all that.
C# is a dirty dirty person.
C# should be ashamed of themselves.