projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2006-04-26 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-81.cs
1
//
2
// Tests if we can invoke static members using the short
3
// names
4
//
5
using System;
6
7
namespace N1
8
{
9
public class A
10
{
11
int x;
12
string s;
13
14
void Bar ()
15
{
16
x = int.Parse ("0");
17
s = string.Format("{0}", x);
18
}
19
20
public static int Main ()
21
{
22
A a = new A ();
23
24
a.Bar ();
25
26
if (a.x != 0)
27
return 1;
28
29
if (a.s != "0")
30
return 1;
31
32
Console.WriteLine ("Bar set s to " + a.s);
33
34
return 0;
35
}
36
}
37
}