Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
System.Reflection.Emit: PropertyBuilder with generic type doesn't add generic parameter #6192
I've got an issue with Mono when I generate IL with Reflection.Emit. I'm trying to do something similar to this:
with following code:
However when assembly looks like this:
As you see
Btw, on Windows, with Microsoft's Reflection.Emit it works fine.
Looks like it has nothing to do with properties. Just try to load or store to/from generic field.
Here is shorter repro app:
And this is the IL for GetElement():