using System;
public class Program
{
public static void Main()
Point p = new Point();
p.PointChanged += StructEventHandler;
p.X = 10;
}
static void StructEventHandler(int point)
Console.WriteLine("Point changed to {0}", point);
struct Point
private int _x, _y;
public int X {
get
return _x;
set
_x = value;
PointChanged(_x);
public int Y
return _y;
_y = value;
PointChanged(_y);
public event Action<int> PointChanged;