Skip to content

Commit 10ed9fd

Browse files
MateuszKlateckijosesimoes
authored andcommitted
Added GetInvocationList to System.Delegate (#85)
***NO_CI***
1 parent f0bc129 commit 10ed9fd

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

source/nanoFramework.CoreLibrary/System/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
[assembly: AssemblyProduct("nanoFramework mscorlib")]
1515
[assembly: AssemblyCopyright("Copyright © nanoFramework Contributors 2017")]
1616

17-
[assembly: AssemblyNativeVersion("100.2.1.0")]
17+
[assembly: AssemblyNativeVersion("100.2.2.0")]

source/nanoFramework.CoreLibrary/System/Delegate.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,19 @@ public extern MethodInfo Method
5454
{
5555
[MethodImpl(MethodImplOptions.InternalCall)]
5656
get;
57-
}
58-
57+
}
58+
59+
/// <summary>
60+
/// Returns the invocation list of the delegate.
61+
/// </summary>
62+
/// <returns>
63+
/// An array of delegates representing the invocation list of the current delegate.
64+
/// </returns>
65+
[MethodImpl(MethodImplOptions.InternalCall)]
66+
#pragma warning disable S4200 // Native methods should be wrapped
67+
public virtual extern Delegate[] GetInvocationList();
68+
#pragma warning restore S4200 // Native methods should be wrapped
69+
5970
/// <summary>
6071
/// Gets the class instance on which the current delegate invokes the instance method.
6172
/// </summary>

0 commit comments

Comments
 (0)