CounterWrapper.DoIt C# (CSharp) Méthode

DoIt() public méthode

public DoIt ( int start, int end ) : void
start int
end int
Résultat void
    public void DoIt(int start, int end)
    {
        c.DoIt(start, end);
    }

Usage Example

 static void Main()
 {
     CounterWrapper c = new CounterWrapper(new Counter());
     CountEventHandler a = n => Console.WriteLine("Alerta " + n);
     c.CountEvent += a; // call add_CountEvent
     c.DoIt(5, 7);
     c.CountEvent -= a; // call remove_CountEvent
     c.DoIt(5, 7);
 }