Call custom parameterless constructor on structs through Activator (#10778)
authorKoundinya Veluri <kouvel@microsoft.com>
Fri, 7 Apr 2017 06:51:13 +0000 (23:51 -0700)
committerJan Kotas <jkotas@microsoft.com>
Fri, 7 Apr 2017 06:51:13 +0000 (23:51 -0700)
commitb4f28d7470da18ec871ae1240a6c9df2db44da2c
tree98c3c0821116021b24a1bb1a445c578e4e017fa2
parentd21b39809b8421bc1acc7de670053c1d9d0ddfd4
Call custom parameterless constructor on structs through Activator (#10778)

Fixes #6843
- Disabled caching struct types that have custom parameterless constructors in `ActivatorCache`
- Removed some things relevant to security, which don't apply to CoreCLR
src/mscorlib/src/System/RtType.cs
src/mscorlib/src/System/RuntimeHandles.cs
src/vm/reflectioninvocation.cpp
src/vm/runtimehandles.h
tests/src/reflection/ActivateStructDefCtor/ActivateStructDefCtor.il [new file with mode: 0644]
tests/src/reflection/ActivateStructDefCtor/ActivateStructDefCtor.ilproj [new file with mode: 0644]