Ejemplo n.º 1
0
static void Main()
{
exe e = new exe();
myclass.ten += new IncrementValue(e.OnTen);
myclass.twenty += new ShowTen(e.OnTwenty);
myclass.thirty += new ShowTen(e.OnThirty);
myclass.countSet += new CountInitialized(e.showCount);
try
{
myclass cl = new myclass();
cl.Count = 40;
cl.runloop();
}
catch(NegativeException ng)
{
Console.WriteLine(ng.Message);
}
}