a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
27 lines
432 B
C#
27 lines
432 B
C#
// CS0079: The event `ErrorCS0079.OnFoo' can only appear on the left hand side of `+=' or `-=' operator
|
|
// Line: 19
|
|
|
|
using System;
|
|
|
|
class ErrorCS0079 {
|
|
public delegate void Handler ();
|
|
event Handler privateEvent;
|
|
public event Handler OnFoo {
|
|
add {
|
|
privateEvent += value;
|
|
}
|
|
remove {
|
|
privateEvent -= value;
|
|
}
|
|
}
|
|
void Callback() {
|
|
if (privateEvent != null)
|
|
OnFoo();
|
|
}
|
|
|
|
public static void Main () {
|
|
}
|
|
}
|
|
|
|
|