a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
24 lines
245 B
C#
24 lines
245 B
C#
//
|
|
// It is possible to invoke Enum methods on an enum type.
|
|
//
|
|
using System;
|
|
|
|
enum Test {
|
|
A,
|
|
B,
|
|
C
|
|
}
|
|
|
|
class X {
|
|
|
|
public static int Main ()
|
|
{
|
|
Test test = Test.A;
|
|
|
|
if (!Test.IsDefined (typeof (Test), test))
|
|
return 1;
|
|
|
|
return 0;
|
|
}
|
|
}
|