Click here to Skip to main content
15,887,027 members
Articles / Programming Languages / C#

Enumeration-based Command Line Utility

Rate me:
Please Sign up or sign in to vote.
4.99/5 (49 votes)
14 May 2017CPOL19 min read 97.6K   925   101  
An example the application of Enumeration class, third article of the series
/*
    Enumeration demo:
    Generic class Enumeration provides iteration capabilities based on enumeration or any other type with static fields;
    Generic class EnumerationIndexedArray implements enumeration-indexed arrays
    
    Copyright (C) 2008-2010 by Sergey A Kryukov
    http://www.SAKryukov.org
*/

using System;
using System.Windows.Forms;

namespace EnumerationDemo {

    public partial class FormEnumerationDemo : Form {
        
        public FormEnumerationDemo() {
            InitializeComponent();
            Setup();
        } //FormEnumerationDemo
        
        [STAThread]
        static void Main() {
            Application.EnableVisualStyles();
            Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException);
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new FormEnumerationDemo());
        } //Main

    } //class FormEnumerationDemo

} //namespace EnumerationDemo

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
United States United States
Physics, physical and quantum optics, mathematics, computer science, control systems for manufacturing, diagnostics, testing, and research, theory of music, musical instruments… Contact me: https://www.SAKryukov.org

Comments and Discussions