Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-30.il « tests « ilasm « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ccbaba715ffe6313813a5e9876837dc041acf80d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//
// Mono.ILASM.Tests
//
// Author(s):
//  Jackson Harper (Jackson@LatitudeGeo.com)
//
// (C) 2003 Jackson Harper, All rights reserved
//
.assembly extern corlib { }

.namespace Mono.ILASM.Tests {

           .class public EventTest {

                  .method public void Subscribe ()
                  {
                        ldstr "Mono.ILASM.Tests.EventTest::Subscribe ()"
                        call void [mscorlib]System.Console::WriteLine (string)
                  }

                  .method public void Unsubscribe ()
                  {
                        ldstr "Mono.ILASM.Tests.EventTest::Unsubscribe ()"
                        call void [mscorlib]System.Console::WriteLine (string)
                  }

                  .method public void Raise ()
                  {
                        ldstr "Mono.ILASM.Tests.EventTest::Raise ()"
                        call void [mscorlib]System.Console::WriteLine (string)
                  }

                  .event [mscorlib]System.Delegate LeEvent
                  {
                        .addon instance void Mono.ILASM.Tests.EventTest::Subscribe ()
                        .removeon instance void Mono.ILASM.Tests.EventTest::Unsubscribe ()
                        .fire instance void Mono.ILASM.Tests.EventTest::Raise ()
                  }
           }
}