diff options
author | Atsushi Kanamori <AtsushiKan@users.noreply.github.com> | 2017-05-17 17:22:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-17 17:22:11 +0300 |
commit | d73512863b7a08a6106c78446346327da8063f34 (patch) | |
tree | ac0cfa6568b4a9c5c6b6bf2ad90dcd881d69279d /src/System.Private.Reflection.Execution | |
parent | 9ff73cd96aa1e2865be2acdb51361f19ef542f11 (diff) |
Make Type.MakeArrayType(1) not throw PlatformNotSupportedException (#3635)
Missed one check.
Diffstat (limited to 'src/System.Private.Reflection.Execution')
2 files changed, 0 insertions, 8 deletions
diff --git a/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ExecutionEnvironmentImplementation.MappingTables.cs b/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ExecutionEnvironmentImplementation.MappingTables.cs index 8c314929d..45dde7c41 100644 --- a/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ExecutionEnvironmentImplementation.MappingTables.cs +++ b/src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ExecutionEnvironmentImplementation.MappingTables.cs @@ -268,11 +268,6 @@ namespace Internal.Reflection.Execution return false; } - if (rank == 1) - { - throw new PlatformNotSupportedException(SR.PlatformNotSupported_NoMultiDims_Rank1); - } - if ((rank < MDArray.MinRank) || (rank > MDArray.MaxRank)) { throw new TypeLoadException(SR.Format(SR.MultiDim_Of_This_Rank_Not_Supported, rank)); diff --git a/src/System.Private.Reflection.Execution/src/Resources/Strings.resx b/src/System.Private.Reflection.Execution/src/Resources/Strings.resx index 10bd0a418..2024d9b80 100644 --- a/src/System.Private.Reflection.Execution/src/Resources/Strings.resx +++ b/src/System.Private.Reflection.Execution/src/Resources/Strings.resx @@ -174,9 +174,6 @@ <data name="MissingConstructor_Name" xml:space="preserve"> <value>Constructor on type '{0}' not found.</value> </data> - <data name="PlatformNotSupported_NoMultiDims_Rank1" xml:space="preserve"> - <value>Multidimensional arrays of rank 1 are not supported on this runtime.</value> - </data> <data name="MultiDim_Of_This_Rank_Not_Supported" xml:space="preserve"> <value>Multidimensional arrays of rank {0} are not supported.</value> </data> |