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

test-230.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 55fe02dcb8254958b9d6ad6d6c03b7b61a0318ac (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
using System;
using System.Reflection;
using System.Diagnostics;

[module: DebuggableAttribute (false, false)] 

class TestClass {
        public static int Main()
        {
            Module[] moduleArray;
            moduleArray = Assembly.GetExecutingAssembly().GetModules(false);

            Module myModule = moduleArray[0];
            object[] attributes;
            
            attributes = myModule.GetCustomAttributes(typeof (DebuggableAttribute), false);
            if (attributes[0] != null)
            {
                Console.WriteLine ("Succeeded");
                return 0;
            }
            return 1;
        }
}