public class DemoDelegate {
void Repeat10Times( SimpleDelegate someWork ) {
	for (int i = 0; i < 10; i++) someWork();
}
void Run2() {
int counter = 0;
this.Repeat10Times( delegate {
Console.WriteLine( "kapitola C#" );
counter++;
} );
Console.WriteLine( counter );
}
// . . .
}
