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
2009-07-17 Zoltan Varga <vargaz@gmail.com>
[mcs.git]
/
tests
/
test-279.cs
blob
be1d7fba81fc9a35a02caaa365e259171b607958
1
using
System
;
2
3
class
FlagsAttributeDemo
4
{
5
// Define an Enum with FlagsAttribute.
6
[
FlagsAttribute
]
7
enum
MultiHue
:
short
8
{
9
Black
=
0
,
10
Red
=
1
,
11
Green
=
2
,
12
Blue
=
4
13
};
14
15
static int
Main
( )
16
{
17
string
s
= ((
MultiHue
)
7
).
ToString
();
18
19
Console
.
WriteLine
(
s
);
20
if
(
s
!=
"Red, Green, Blue"
)
21
return
1
;
22
return
0
;
23
}
24
}