//Title of this code
//Rextester.Program.Main is the entry point for your code. Don't change it.
//Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace Rextester
{
// Derive a class from EventArgs.
class MyEventArgs : EventArgs
public int EventNum;
}
// Declare a delegate type for an event.
delegate void MyEventHandler(object sender, MyEventArgs e);
// Declare a class that contains an event.
class MyEvent
static int count = 0;
public event MyEventHandler SomeEvent;
// This raises SomeEvent.
public void OnSomeEvent()