PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/Visual Studio 2008/CSListFilesInDirectory/Program.cs

#
C# | 41 lines | 19 code | 3 blank | 19 comment | 0 complexity | c350711b8ca6488bf0a91f226bdce96f MD5 | raw file
 1/************************************* Module Header **************************************\
 2* Module Name:  Program.cs
 3* Project:      CSListFilesInDirectory
 4* Copyright (c) Microsoft Corporation.
 5* 
 6* The CSListFilesInDirectory project demonstrates how to implement an IEnumerable<string>
 7* that utilizes the Win32 File Management functions to enable application to get files and
 8* sub-directories in a specified directory one item a time.
 9* 
10* This source is subject to the Microsoft Public License.
11* See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
12* All other rights reserved.
13* 
14* History:
15* * 7/7/2009 8:00 PM Jie Wang Created
16\******************************************************************************************/
17
18#region Using directives
19using System;
20using System.Collections.Generic;
21using System.Linq;
22using System.Windows.Forms;
23#endregion
24
25
26namespace CSListFilesInDirectory
27{
28    static class Program
29    {
30        /// <summary>
31        /// The main entry point for the application.
32        /// </summary>
33        [STAThread]
34        static void Main()
35        {
36            Application.EnableVisualStyles();
37            Application.SetCompatibleTextRenderingDefault(false);
38            Application.Run(new MainForm());
39        }
40    }
41}