using System.Drawing.Printing; ... // Loop through the string collection of printers foreach (string strPrinter in PrinterSettings.InstalledPrinters) { // Show the name of the printer MessageBox.Show(strPrinter); }
Stopwatch w = new Stopwatch(); w.Start(); for (int i = 0; i < 10000; i++) { string ghouse = Enum.GetName(tableName.GetType(), tableName); } w.Stop(); Console.WriteLine("I time = " + w.ElapsedTicks); w.Reset(); w.Start(); for (in...
Comments
Post a Comment