CustomConstantAttribute doesn't work in Mono
See tests getting added in https://github.com/dotnet/runtime/pull/49767.
Tagging subscribers to this area: @CoffeeFlux See info in area-owners.md if you want to be subscribed.
Issue Details
See tests getting added in https://github.com/dotnet/runtime/pull/49767.
| Author: | MichalStrehovsky |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
I was curious what was wrong with Mono and I did some research. I found that the mono implementation doesn't have code trying to assign CustomConstantAttribute's value.
Mono: https://github.com/dotnet/runtime/blob/79ae74f5ca5c8a6fe3a48935e85bd7374959c570/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeParameterInfo.cs#L125-L145 https://github.com/dotnet/runtime/blob/79ae74f5ca5c8a6fe3a48935e85bd7374959c570/src/mono/System.Private.CoreLib/src/System/Reflection/RuntimeParameterInfo.cs#L194-L198
CoreClr: https://github.com/dotnet/runtime/blob/79ae74f5ca5c8a6fe3a48935e85bd7374959c570/src/coreclr/System.Private.CoreLib/src/System/Reflection/RuntimeParameterInfo.cs#L370-L382
Looks like a straightforward fix; probably worth trying to get in if it doesn't prove too difficult.
Moving to 7.0.0
Didn't have bandwidth to work on this in .NET7. Moving to milestone 8.0.0.