projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2005-07-24 Atsushi Enomoto <atsushi@ximian.com>
[mono.git]
/
mcs
/
tests
/
test-279.cs
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
}