**** Merged from MCS ****
[mono-project.git] / mcs / ilasm / tests / test-30.il
blobccbaba715ffe6313813a5e9876837dc041acf80d
1 //
2 // Mono.ILASM.Tests
3 //
4 // Author(s):
5 //  Jackson Harper (Jackson@LatitudeGeo.com)
6 //
7 // (C) 2003 Jackson Harper, All rights reserved
8 //
9 .assembly extern corlib { }
11 .namespace Mono.ILASM.Tests {
13            .class public EventTest {
15                   .method public void Subscribe ()
16                   {
17                         ldstr "Mono.ILASM.Tests.EventTest::Subscribe ()"
18                         call void [mscorlib]System.Console::WriteLine (string)
19                   }
21                   .method public void Unsubscribe ()
22                   {
23                         ldstr "Mono.ILASM.Tests.EventTest::Unsubscribe ()"
24                         call void [mscorlib]System.Console::WriteLine (string)
25                   }
27                   .method public void Raise ()
28                   {
29                         ldstr "Mono.ILASM.Tests.EventTest::Raise ()"
30                         call void [mscorlib]System.Console::WriteLine (string)
31                   }
33                   .event [mscorlib]System.Delegate LeEvent
34                   {
35                         .addon instance void Mono.ILASM.Tests.EventTest::Subscribe ()
36                         .removeon instance void Mono.ILASM.Tests.EventTest::Unsubscribe ()
37                         .fire instance void Mono.ILASM.Tests.EventTest::Raise ()
38                   }
39            }