projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2009-08-04 Marek Safar <marek.safar@gmail.com>
[mono.git]
/
mcs
/
tests
/
test-partial-26.cs
1
using System;
2
3
namespace ConsoleApplication1
4
{
5
public partial class X
6
{
7
[CLSCompliant (true)]
8
partial void Foo ();
9
}
10
11
public partial class X
12
{
13
partial void Foo ()
14
{
15
int i;
16
}
17
}
18
19
class Program
20
{
21
static int Main ()
22
{
23
var x = typeof (X).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
24
Console.WriteLine (x.Length);
25
if (x.Length == 1)
26
return 0;
27
28
return 1;
29
}
30
}
31
}