repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In class/Microsoft.Build.Tasks:
[mcs.git]
/
tests
/
gtest-313.cs
blob
8ffb85f6debe754eb69ac39b995b895ca1b00ec2
1
using
System
;
2
3
class
Foo
<
T
>
4
{
5
public enum
TestEnum { One, Two, Three }
6
7
public
TestEnum Test
;
8
9
public
Foo
(
TestEnum test
)
10
{
11
this
.
Test
=
test
;
12
}
13
}
14
15
class
X
16
{
17
static void
Main
()
18
{
19
Foo
<
int
>.
TestEnum e
=
Foo
<
int
>.
TestEnum
.
One
;
20
Console
.
WriteLine
(
e
);
21
22
Foo
<
int
>
foo
=
new
Foo
<
int
> (
e
);
23
foo
.
Test
=
e
;
24
}
25
}