Testing the Crayon Syntax Highlighter plugin. Not too sure of how to use it, yet.
using System; namespace ConsoleApplication1 { enum TestEnum { Test1, Test2, Test3 } /// <summary> /// Summary description for Class1. /// </summary> class Hello { /// <summary> /// The main entry point for the application. /// </summary> [STAThread] static void Main(string[] args) { Console.WriteLine("WriteLine() an enum (uncasted values): {0}, {1}, {2}\n", TestEnum.Test1, TestEnum.Test2, TestEnum.Test3); Console.WriteLine("WriteLine() an enum (casted values): {0}, {1}, {2}\n", (int)TestEnum.Test1, (int)TestEnum.Test2, (int)TestEnum.Test3); Console.WriteLine("{0}, {1}\n", (int)TestEnum.Test2 == 0, true); } } }
No comments yet
Leave a Reply
You must be logged in to post a comment.