I've recently submitted several bugfixes for Reflection and Reflection.Emit which I would love to see backported to the .NET Framework. The goal is to increase the accuracy of dynamic proxying of types (with e.g. DynamicProxy) which would directly benefit mocking libraries (e.g. Moq, NSubstitute, FakeItEasy) and DI containers (e.g. Castle Windsor, Autofac).
I suspect that there is significant code share between the CLR and the CoreCLR in the Reflection facilities, since both runtimes had the same bugs, so backporting would seem generally feasible.
Could the following changes from CoreCLR please be backported to the .NET Framework?:
Reflection: Fix FormatException when querying ParameterInfo.DefaultValue of optional DateTime parameter
Reflection.Emit: Allow ParameterBuilder.SetConstant(null) for value-typed parameters
Reflection: Fix FormatException when querying ParameterInfo.DefaultValue of optional (closed generic) enum parameter
Reflection: Allow ParameterBuilder.SetConstant(nonNullValue) for nullable enum parameters
If I am asking in the wrong place, please let me know how to proceed in order to advance this request.
I've recently submitted several bugfixes for Reflection and Reflection.Emit which I would love to see backported to the .NET Framework. The goal is to increase the accuracy of dynamic proxying of types (with e.g. DynamicProxy) which would directly benefit mocking libraries (e.g. Moq, NSubstitute, FakeItEasy) and DI containers (e.g. Castle Windsor, Autofac).
I suspect that there is significant code share between the CLR and the CoreCLR in the Reflection facilities, since both runtimes had the same bugs, so backporting would seem generally feasible.
Could the following changes from CoreCLR please be backported to the .NET Framework?:
Reflection: Fix
FormatExceptionwhen queryingParameterInfo.DefaultValueof optionalDateTimeparameterReflection.Emit: Allow
ParameterBuilder.SetConstant(null)for value-typed parametersParameterBuilder.SetConstant(null)for value-typed parameters dotnet/coreclr#17887 + [WIP] Fix failing System.Reflection.Emit tests dotnet/coreclr#17915 (amendment)ParameterBuilder.SetConstant(null)dotnet/corefx#29532Reflection: Fix
FormatExceptionwhen queryingParameterInfo.DefaultValueof optional (closed generic) enum parameterReflection: Allow
ParameterBuilder.SetConstant(nonNullValue)for nullable enum parametersIf I am asking in the wrong place, please let me know how to proceed in order to advance this request.