From e692394c5f2de1c02de015180dd00d84883f531e Mon Sep 17 00:00:00 2001 From: Mateusz Klatecki Date: Wed, 10 Jul 2019 12:55:15 +0200 Subject: [PATCH] Added GetInvocationList to System.Delegate --- .../System/AssemblyInfo.cs | 2 +- .../nanoFramework.CoreLibrary/System/Delegate.cs | 15 +++++++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/source/nanoFramework.CoreLibrary/System/AssemblyInfo.cs b/source/nanoFramework.CoreLibrary/System/AssemblyInfo.cs index 96755795..68c2155a 100644 --- a/source/nanoFramework.CoreLibrary/System/AssemblyInfo.cs +++ b/source/nanoFramework.CoreLibrary/System/AssemblyInfo.cs @@ -14,4 +14,4 @@ [assembly: AssemblyProduct("nanoFramework mscorlib")] [assembly: AssemblyCopyright("Copyright © nanoFramework Contributors 2017")] -[assembly: AssemblyNativeVersion("100.2.1.0")] +[assembly: AssemblyNativeVersion("100.2.2.0")] diff --git a/source/nanoFramework.CoreLibrary/System/Delegate.cs b/source/nanoFramework.CoreLibrary/System/Delegate.cs index 4bda5e79..e8ae8a9e 100644 --- a/source/nanoFramework.CoreLibrary/System/Delegate.cs +++ b/source/nanoFramework.CoreLibrary/System/Delegate.cs @@ -54,8 +54,19 @@ public extern MethodInfo Method { [MethodImpl(MethodImplOptions.InternalCall)] get; - } - + } + + /// + /// Returns the invocation list of the delegate. + /// + /// + /// An array of delegates representing the invocation list of the current delegate. + /// + [MethodImpl(MethodImplOptions.InternalCall)] +#pragma warning disable S4200 // Native methods should be wrapped + public virtual extern Delegate[] GetInvocationList(); +#pragma warning restore S4200 // Native methods should be wrapped + /// /// Gets the class instance on which the current delegate invokes the instance method. ///