Copied remotely
[mono.git] / mcs / ilasm / tests / test-30.il
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 { }
10
11 .namespace Mono.ILASM.Tests {
12
13            .class public EventTest {
14
15                   .method public void Subscribe ()
16                   {
17                         ldstr "Mono.ILASM.Tests.EventTest::Subscribe ()"
18                         call void [mscorlib]System.Console::WriteLine (string)
19                   }
20
21                   .method public void Unsubscribe ()
22                   {
23                         ldstr "Mono.ILASM.Tests.EventTest::Unsubscribe ()"
24                         call void [mscorlib]System.Console::WriteLine (string)
25                   }
26
27                   .method public void Raise ()
28                   {
29                         ldstr "Mono.ILASM.Tests.EventTest::Raise ()"
30                         call void [mscorlib]System.Console::WriteLine (string)
31                   }
32
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            }
40 }