2 // A compilation test: accessing an event from a nested class.
7 public delegate void OnWhateverDelegate( string s
);
11 public event OnWhateverDelegate OnWhatever
;
15 internal void CallParentDel( cls c
, string s
)
20 internal void CallMyDel( string s
)
22 (new nestedcls()).CallParentDel( this, s
);
31 c
.OnWhatever
+= new OnWhateverDelegate( Whatever
);
32 c
.CallMyDel( "test" );
34 static void Whatever( string s
)
36 Console
.WriteLine( s
);