Enum ã¨æ¡å¼µã¡ã½ããã£ã¦ç¸æ§ãããã§ãããMSDN ã©ã¤ãã©ãªã§ãåãä¸ãããã¦ã¾ããã©ã enum MyEnum { A, B } ã¨å®ç¾©ãã enum ãæåååããã¨ãã«æ¥æ¬èªã«ããããã¨ããããã£ã¦ãstatic ãªé¢æ°ãæ¸ãã¦ããã©ãæ¡å¼µã¡ã½ããã§ã¡ãã£ã¨ã ããããã«ãªãã¾ããã using System; class Program { static void Main() { var e = MyEnum.A; Console.WriteLine( e.ToString() ); Console.WriteLine( e.ToStringExt() ); Console.ReadKey(); } } public enum MyEnum { A, B } public static class MyEnumExt { public static string ToStri
{{#tags}}- {{label}}
{{/tags}}