I was working on a presentation and was curious about how many types are in the .NET Framework 2.0. I had remembered a fine article by Panos Kougiouris in MSDN magazine that had used Reflection to determine that the 1.1 Framework had over 9000 types. I decided to run it on 2.0 -- total number came out over 28,600. If this trend continues, could WinFx end up with > 85K classes?
Here's the top 20 types based on Panos' app.
| Type |
Interface Inheitance |
Class Inheritance |
Property |
Field |
C'tor |
Operator |
Method |
Total |
| System.Int32 |
0 |
0 |
3650 |
32465 |
3378 |
9 |
23890 |
63392 |
| System.String |
0 |
0 |
3169 |
2888 |
4028 |
8 |
10804 |
20897 |
| System.Object |
0 |
7895 |
754 |
338 |
1413 |
4 |
7363 |
17767 |
| System.Boolean |
0 |
0 |
1758 |
484 |
834 |
4 |
2552 |
5632 |
| System.Collections.IEnumerable |
5173 |
0 |
1 |
0 |
4 |
0 |
9 |
5187 |
| System.IntPtr |
0 |
0 |
17 |
617 |
1023 |
1 |
1677 |
3335 |
| System.EventHandler |
0 |
0 |
2 |
2 |
35 |
0 |
3111 |
3150 |
| System.IComparable |
2947 |
0 |
0 |
0 |
0 |
0 |
0 |
2947 |
| System.IConvertible |
2920 |
0 |
0 |
0 |
0 |
0 |
0 |
2920 |
| System.Enum |
0 |
2885 |
0 |
0 |
0 |
0 |
17 |
2902 |
| System.IFormattable |
2899 |
0 |
0 |
0 |
0 |
0 |
0 |
2899 |
| System.ICloneable |
2693 |
0 |
0 |
0 |
0 |
0 |
0 |
2693 |
| System.UInt32 |
0 |
0 |
10 |
544 |
27 |
2 |
1461 |
2044 |
| System.IDisposable |
1802 |
0 |
0 |
10 |
0 |
0 |
0 |
1812 |
| System.Collections.ICollection |
1705 |
0 |
1 |
0 |
45 |
0 |
33 |
1784 |
| System.Runtime.Serialization.ISerializable |
1697 |
0 |
0 |
0 |
0 |
0 |
0 |
1697 |
| System.ValueType |
0 |
1692 |
0 |
0 |
0 |
0 |
1 |
1693 |
| System.Int16 |
0 |
0 |
78 |
1041 |
29 |
2 |
302 |
1452 |
| System.Windows.Forms.UnsafeNativeMethods+IHTMLEventObj |
0 |
0 |
0 |
0 |
0 |
0 |
1381 |
1381 |
| System.Collections.IList |
1326 |
0 |
3 |
0 |
6 |
0 |
12 |
1347 |
Print | posted on Friday, February 17, 2006 3:28 AM