Update CoreRT for changes in shared partition
authorJan Kotas <jkotas@microsoft.com>
Fri, 5 Apr 2019 04:49:22 +0000 (21:49 -0700)
committerJan Kotas <jkotas@microsoft.com>
Wed, 10 Apr 2019 03:50:29 +0000 (20:50 -0700)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/System.Private.CoreLib/shared/System/Delegate.cs

index 1e8b8c9..0c60ba5 100644 (file)
@@ -11,10 +11,6 @@ namespace System
 {
     public abstract partial class Delegate : ICloneable, ISerializable
     {
-        private Delegate()
-        {
-        }
-
         public virtual object Clone() => MemberwiseClone();
 
         public static Delegate? Combine(Delegate? a, Delegate? b)
@@ -37,8 +33,6 @@ namespace System
             return d;
         }
 
-        protected virtual Delegate CombineImpl(Delegate? d) => throw new MulticastNotSupportedException(SR.Multicast_Combine);
-
         // V2 api: Creates open or closed delegates to static or instance methods - relaxed signature checking allowed. 
         public static Delegate CreateDelegate(Type type, object? firstArgument, MethodInfo method) => CreateDelegate(type, firstArgument, method, throwOnBindFailure: true)!;
 
@@ -53,19 +47,23 @@ namespace System
         public static Delegate CreateDelegate(Type type, Type target, string method) => CreateDelegate(type, target, method, ignoreCase: false, throwOnBindFailure: true)!;
         public static Delegate CreateDelegate(Type type, Type target, string method, bool ignoreCase) => CreateDelegate(type, target, method, ignoreCase, throwOnBindFailure: true)!;
 
+#if !CORERT
+        protected virtual Delegate CombineImpl(Delegate? d) => throw new MulticastNotSupportedException(SR.Multicast_Combine);
+
+        protected virtual Delegate? RemoveImpl(Delegate d) => d.Equals(this) ? null : this;
+
+        public virtual Delegate[] GetInvocationList() => new Delegate[] { this };
+
         public object? DynamicInvoke(params object?[]? args)
         {
             return DynamicInvokeImpl(args);
         }
-
-        public virtual Delegate[] GetInvocationList() => new Delegate[] { this };
+#endif
 
         public virtual void GetObjectData(SerializationInfo info, StreamingContext context) => throw new PlatformNotSupportedException();
 
         public MethodInfo Method => GetMethodImpl();
 
-        protected virtual Delegate? RemoveImpl(Delegate d) => d.Equals(this) ? null : this;
-
         public static Delegate? Remove(Delegate? source, Delegate? value)
         {
             if (source == null)