mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
19 lines
297 B
C#
19 lines
297 B
C#
// The event access is illegal and it should bail out
|
|
|
|
using System;
|
|
|
|
delegate void MyEventHandler();
|
|
|
|
class MyEvent {
|
|
public event MyEventHandler SomeEvent;
|
|
}
|
|
|
|
class EventDemo {
|
|
|
|
public static void Main(){
|
|
MyEvent evt = new MyEvent();
|
|
// CS0070
|
|
evt.SomeEvent();
|
|
}
|
|
}
|