public class DemoDelegate {
void MethodA() { . . . }
int MethodB() { . . . }
void MethodC( string x, int y ) { . . . }

void CreateInstance() {
SimpleDelegate a = new SimpleDelegate( MethodA );
ReturnValueDelegate b = new ReturnValueDelegate ( MethodB );
TwoParamsDelegate c = new TwoParamsDelegate ( MethodC );
// . . .
}
}
