mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
17 lines
386 B
C#
17 lines
386 B
C#
using System;
|
|
|
|
namespace IL2CPU.Tests.Tests.Events.SimpleCreateDelegate {
|
|
public class SimpleCreateDelegate {
|
|
public static void MyHandler(object sender, EventArgs e) {
|
|
ReturnCode = 0;
|
|
}
|
|
|
|
private static int ReturnCode;
|
|
static int Main() {
|
|
ReturnCode = 1;
|
|
EventHandler xDelegate = MyHandler;
|
|
xDelegate(null, null);
|
|
return ReturnCode;
|
|
}
|
|
}
|
|
}
|