PageRenderTime 53ms CodeModel.GetById 15ms RepoModel.GetById 0ms 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. #region Using directives
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Linq;
  21. using System.Windows.Forms;
  22. #endregion
  23. namespace CSListFilesInDirectory
  24. {
  25. static class Program
  26. {
  27. /// <summary>
  28. /// The main entry point for the application.
  29. /// </summary>
  30. [STAThread]
  31. static void Main()
  32. {
  33. Application.EnableVisualStyles();
  34. Application.SetCompatibleTextRenderingDefault(false);
  35. Application.Run(new MainForm());
  36. }
  37. }
  38. }