[System.Reflection] CoreFX import for FieldInfo type. (#10370)
commitfaaa9a41c66c31708b47bbd55d65de9f24c85aff
authorMaxim Lipnin <mlipnin@gmail.com>
Mon, 3 Sep 2018 09:48:39 +0000 (3 12:48 +0300)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Mon, 3 Sep 2018 09:48:39 +0000 (3 11:48 +0200)
tree01b9dee59edadf51de6b4f51bf613d0e418c741c
parent84af5b235e6fed68197d95448b5715fb776776dd
[System.Reflection] CoreFX import for FieldInfo type. (#10370)

Part of #9660.

The changes:
- included FieldInfo type from CoreFX + related xunit tests;
- made Mono-implemented class partial; removed duplicated code;
- moved GetOptionalCustomModifiers and GetRequiredCustomModifiers methods to MonoField type;
- moved GetTypeModifiers extern method and related icall to MonoField type;
- updated ToString method in CustomAttributeTypedArgument type with CoreFX implementation;
13 files changed:
configure.ac
external/api-snapshot
external/corefx
mcs/class/corlib/System.Reflection.Emit/FieldOnTypeBuilderInst.cs
mcs/class/corlib/System.Reflection/CustomAttributeTypedArgument.cs
mcs/class/corlib/System.Reflection/FieldInfo.cs
mcs/class/corlib/System.Reflection/MonoField.cs
mcs/class/corlib/Test/System.Reflection/CustomAttributeDataTest.cs
mcs/class/corlib/corlib.csproj
mcs/class/corlib/corlib.dll.sources
mcs/class/corlib/corlib_xtest.dll.sources
mcs/class/referencesource/mscorlib/system/runtime/serialization/serializationfieldinfo.cs
mono/metadata/icall-def.h