runtime icon indicating copy to clipboard operation
runtime copied to clipboard

CustomConstantAttribute doesn't work in Mono

Open MichalStrehovsky opened this issue 5 years ago • 5 comments

See tests getting added in https://github.com/dotnet/runtime/pull/49767.

MichalStrehovsky avatar Mar 18 '21 09:03 MichalStrehovsky

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:

area-System.Reflection-mono

Milestone: -

ghost avatar Mar 18 '21 09:03 ghost

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

SkiFoD avatar Mar 18 '21 16:03 SkiFoD

Looks like a straightforward fix; probably worth trying to get in if it doesn't prove too difficult.

CoffeeFlux avatar Jun 14 '21 17:06 CoffeeFlux

Moving to 7.0.0

SamMonoRT avatar Jul 26 '21 13:07 SamMonoRT

Didn't have bandwidth to work on this in .NET7. Moving to milestone 8.0.0.

fanyang-mono avatar Aug 02 '22 02:08 fanyang-mono