2 using System.ComponentModel;
\r
3 using System.Web.UI.WebControls;
\r
7 static void DoTest () {
\r
8 for (int i=0; i<100000; i++) {
\r
9 TextBox tb = new TextBox ();
\r
10 TypeDescriptor.GetProperties (tb);
\r
15 static void Main(string[] args) {
\r
16 Console.WriteLine ("This test should normally take less than a second");
\r
17 DateTime start = DateTime.Now;
\r
19 TimeSpan ts = DateTime.Now - start;
\r
20 Console.Write ("Time spent: ");
\r
21 Console.WriteLine (ts.ToString());
\r