I used reflection and these results
Accessibility.dll Fields=0
Properties=14 Methods=6 Types=2
cscompmgd.dll Fields=16
Properties=1 Methods=7 Types=8
CustomMarshalers.dll Fields=24
Properties=23 Methods=77 Types=43
envdte.dll Fields=195
Properties=1078 Methods=1027 Types=387
IEExecRemote.dll Fields=1
Properties=1 Methods=0 Types=2
IEHost.dll Fields=14
Properties=0 Methods=13 Types=8
IIEHost.dll Fields=0
Properties=0 Methods=5 Types=4
ISymWrapper.dll Fields=10
Properties=23 Methods=67 Types=24
Microsoft.JScript.dll Fields=1066
Properties=331 Methods=1816 Types=326
Microsoft.VisualBasic.Compatibility.Data.dll Fields=250
Properties=72 Methods=417 Types=89
Microsoft.VisualBasic.Compatibility.dll Fields=966
Properties=68 Methods=1902 Types=76
Microsoft.VisualBasic.dll Fields=207
Properties=30 Methods=382 Types=122
Microsoft.VisualBasic.Vsa.dll Fields=12
Properties=36 Methods=30 Types=9
Microsoft.VisualC.Dll Fields=1
Properties=0 Methods=0 Types=10
Microsoft.Vsa.dll Fields=15
Properties=60 Methods=52 Types=20
Microsoft.Vsa.Vb.CodeDOMProcessor.dll Fields=5
Properties=8 Methods=21 Types=4
Microsoft_VsaVb.dll Fields=0
Properties=15 Methods=15 Types=4
mscorcfg.dll Fields=1008
Properties=159 Methods=1087 Types=338
mscorlib.dll Fields=3078
Properties=1923 Methods=6291 Types=1446
office.dll Fields=133
Properties=1055 Methods=571 Types=233
RegCode.dll Fields=12
Properties=0 Methods=13 Types=8
System.Configuration.Install.dll Fields=32
Properties=20 Methods=74 Types=24
System.Data.dll Fields=1498
Properties=967 Methods=3335 Types=530
System.Data.OracleClient.dll Fields=326
Properties=316 Methods=523 Types=144
System.Design.dll Fields=1136
Properties=437 Methods=2839 Types=465
System.DirectoryServices.dll Fields=117
Properties=95 Methods=197 Types=63
System.dll Fields=2133
Properties=1264 Methods=3132 Types=842
System.Drawing.Design.dll Fields=52
Properties=23 Methods=99 Types=33
System.Drawing.dll Fields=603
Properties=367 Methods=1124 Types=261
System.EnterpriseServices.dll Fields=294
Properties=176 Methods=831 Types=320
System.Management.dll Fields=427
Properties=222 Methods=805 Types=233
System.Messaging.dll Fields=259
Properties=211 Methods=316 Types=88
System.Runtime.Remoting.dll Fields=777
Properties=390 Methods=731 Types=194
System.Runtime.Serialization.Formatters.Soap.dll Fields=336
Properties=15 Methods=263 Types=50
System.Security.dll Fields=103
Properties=88 Methods=142 Types=41
System.ServiceProcess.dll Fields=117
Properties=38 Methods=80 Types=41
System.Web.dll Fields=1969
Properties=1550 Methods=3067 Types=710
System.Web.Mobile.dll Fields=1023
Properties=771 Methods=2673 Types=409
System.Web.RegularExpressions.dll Fields=0
Properties=0 Methods=60 Types=45
System.Web.Services.dll Fields=860
Properties=551 Methods=914 Types=294
System.Windows.Forms.dll Fields=3072
Properties=2106 Methods=6459 Types=925
System.XML.dll Fields=2591
Properties=1832 Methods=3398 Types=749
vjscor.dll Fields=12
Properties=2 Methods=4 Types=16
VJSharpCodeProvider.DLL Fields=13
Properties=6 Methods=108 Types=7
vjslib.dll Fields=8471
Properties=0 Methods=11357 Types=1785
vjslibcw.dll Fields=56
Properties=14 Methods=160 Types=38
vjswfc.dll Fields=2940
Properties=0 Methods=9778 Types=1240
VJSWfcBrowserStubLib.dll Fields=7
Properties=0 Methods=4 Types=1
vjswfccw.dll Fields=157
Properties=987 Methods=1089 Types=242
vjswfchtml.dll Fields=663
Properties=0 Methods=6875 Types=533
Total Fields=37057
Properties=17345 Methods=74236 Types=13486
I tried to make this a true representation - so I did not count
inherited members to avoid double counting. For instance, the
Object.Equals method is counted just once instead of each once for
each type (since it's always inherited). And yes, all private stuff
is also counted. I also did not count properties as methods.
I used the following binding flags
BindingFlags bindFlags = BindingFlags.Public | BindingFlags.NonPublic
| BindingFlags.Instance | BindingFlags.DeclaredOnly;
These totals were parsed from the .net assemblies in the
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322 directory.
"songie D" <so****@d.com> wrote in message news:<uw**************@TK2MSFTNGP09.phx.gbl>...
Nah, it's literally millions.
Imagine it - say if Microsoft have got a thousand developers, and they
worked on a project for about 6 years (including time spent on functions
they already had the code for), and they created an average of a function
each every two days, then they'd have a million.
"Mark" <fi******@idonotlikejunkmail.umn.edu> wrote in message
news:uF**************@TK2MSFTNGP09.phx.gbl... I have it in my head that I saw a marketing document from Microsoft with
the total number of classes and methods in the .NET Framework. Something like
70,000 methods? I don't need precise numbers, but a rough estimate of the
number of classes and methods would be interesting to know....
Thanks in advance.
Mark