fe777c5c82
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
24 lines
368 B
C#
24 lines
368 B
C#
// CS0070: The event `A.evt' can only appear on the left hand side of += or -= when used outside of the type `A'
|
|
// Line: 22
|
|
|
|
using System;
|
|
|
|
public static class EventExtensions
|
|
{
|
|
public static void Raise (this EventHandler h)
|
|
{
|
|
}
|
|
}
|
|
|
|
public class A
|
|
{
|
|
public event EventHandler evt;
|
|
}
|
|
|
|
public class B : A
|
|
{
|
|
public void Run()
|
|
{
|
|
Action a = () => evt.Raise ();
|
|
}
|
|
} |