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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2019-03-13 07:26:08 +0300
committerMarek Safar <marek.safar@gmail.com>2019-03-13 19:52:11 +0300
commitc3d77000a7d96e7fe12d022b32737b59ce169358 (patch)
treeb0ce6591760557747a44c7ce87b59d5c7681acab /mcs/class/referencesource
parentaa949e211471da01b69e45aab7410a9ebf320809 (diff)
[netcore] Test fixes.
* EqualityComparer.cs: Add LastIndexOf (). * RuntimeAssembly.cs: Implement CreateAssemblyName (). * AssemblyLoadContext.cs: Handle windows paths. Add DoAssemblyResolve () method. * Array.cs: Add/fix error handling. Implement LastIndexOf ()/GetRawArrayData (). * Attribute.cs: Implement. * Buffer.cs: Add/fix error handling. * DefaultBinder.cs: Implement. * RuntimeType.cs: Implement HasSameMetadataDefinitionAs (). * RuntimeEventInfo.cs: Ditto. * RuntimeFieldInfo.cs: Ditto. * RuntimeMethodInfo.cs: Ditto. * RuntimePropertyInfo.cs: Ditto. * MonoCustomAttrs.cs: Add eror handling. Implement inheritance support for parameters. * gc.cs: Fix error handling. * rttype.cs: Fix handling of null namespaces.
Diffstat (limited to 'mcs/class/referencesource')
-rw-r--r--mcs/class/referencesource/mscorlib/system/gc.cs2
-rw-r--r--mcs/class/referencesource/mscorlib/system/rttype.cs7
2 files changed, 7 insertions, 2 deletions
diff --git a/mcs/class/referencesource/mscorlib/system/gc.cs b/mcs/class/referencesource/mscorlib/system/gc.cs
index 423db0a806b..40b53a88670 100644
--- a/mcs/class/referencesource/mscorlib/system/gc.cs
+++ b/mcs/class/referencesource/mscorlib/system/gc.cs
@@ -281,7 +281,7 @@ namespace System {
if ((mode < GCCollectionMode.Default) || (mode > GCCollectionMode.Optimized))
{
- throw new ArgumentOutOfRangeException(Environment.GetResourceString("ArgumentOutOfRange_Enum"));
+ throw new ArgumentOutOfRangeException("mode", Environment.GetResourceString("ArgumentOutOfRange_Enum"));
}
Contract.EndContractBlock();
diff --git a/mcs/class/referencesource/mscorlib/system/rttype.cs b/mcs/class/referencesource/mscorlib/system/rttype.cs
index da6c1d7927a..06cab2b7805 100644
--- a/mcs/class/referencesource/mscorlib/system/rttype.cs
+++ b/mcs/class/referencesource/mscorlib/system/rttype.cs
@@ -2502,7 +2502,7 @@ namespace System
if (!RuntimeType.FilterApplyBase(type, bindingFlags, isPublic, type.IsNestedAssembly, isStatic, name, prefixLookup))
return false;
- if (ns != null && !type.Namespace.Equals(ns))
+ if (ns != null && ns != type.Namespace)
return false;
return true;
@@ -5660,6 +5660,11 @@ namespace System
#endif
)
{
+#if NETCORE
+ if (IsByRefLike)
+ throw new NotSupportedException (SR.NotSupported_ByRefLike);
+#endif
+
if (GetType() == typeof(ReflectionOnlyType))
throw new InvalidOperationException(Environment.GetResourceString("InvalidOperation_NotAllowedInReflectionOnly"));
#if !MONO