Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Kanamori <AtsushiKan@users.noreply.github.com>2017-05-17 17:22:11 +0300
committerGitHub <noreply@github.com>2017-05-17 17:22:11 +0300
commitd73512863b7a08a6106c78446346327da8063f34 (patch)
treeac0cfa6568b4a9c5c6b6bf2ad90dcd881d69279d /src/System.Private.Reflection.Execution
parent9ff73cd96aa1e2865be2acdb51361f19ef542f11 (diff)
Make Type.MakeArrayType(1) not throw PlatformNotSupportedException (#3635)
Missed one check.
Diffstat (limited to 'src/System.Private.Reflection.Execution')
-rw-r--r--src/System.Private.Reflection.Execution/src/Internal/Reflection/Execution/ExecutionEnvironmentImplementation.MappingTables.cs5
-rw-r--r--src/System.Private.Reflection.Execution/src/Resources/Strings.resx3
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>