blob: fc569e3b8f5344238dcac80994fd2c124e75f7f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// CS1618: Cannot create delegate with `TestClass.Show(int)' because it has a Conditional attribute
// Line: 13
class TestClass
{
delegate void test_delegate (int arg);
[System.Diagnostics.Conditional("DEBUG")]
public void Show (int arg) {}
public TestClass ()
{
test_delegate D = new test_delegate (Show);
}
}
|