Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 929849d

Browse files
author
Barton Cline
committed
* Explains rationale for typeof(MulticastDelegate) which was debugged on Windows, but committed from my Linux machine.
1 parent 5d51483 commit 929849d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pythonnet/src/runtime/classmanager.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ private ClassManager() {}
3535

3636
static ClassManager() {
3737
cache = new Dictionary<Type, ClassBase>(128);
38+
// SEE: http://msdn.microsoft.com/en-us/library/96b1ayy4%28VS.90%29.aspx
39+
// ""All delegates inherit from MulticastDelegate, which inherits from Delegate.""
40+
// Was Delegate, which caused a null MethodInfo returned from GetMethode("Invoke")
41+
// and crashed on Linux under Mono.
3842
dtype = typeof(System.MulticastDelegate);
3943
}
4044

0 commit comments

Comments
 (0)