473,463 Members | 1,508 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

number of classes/methods in the .NET framework

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
Nov 16 '05 #1
2 5417
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

Nov 16 '05 #2
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

Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: aaronh64 | last post by:
Have you ever noticed that when you look at an Interface Class definition (ie IDisposable), the methods or properties belonging to the class are defined as abstract (C#) or overridable (vb)? How...
13
by: Mark Rae | last post by:
Hi, Since sealed classes can't be instantiated with the new keyword e.g. CClass objClass = new CClass(), does this mean that they don't have constructors / deconstructors or, if they do, that...
6
by: Ken Allen | last post by:
OK, I admit that I have been programming since before C++ was invented, and I have developed more than my share of assembly language systems, and even contributed to operating system and compiler...
8
by: Mark | last post by:
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,...
10
by: ptass | last post by:
Hi In asp.net 2.0 an aspx files .cs file is a partial class and all works fine, however, I thought I’d be able to create another class file, call it a partial class and have that compile and...
9
by: Sean Kirkpatrick | last post by:
To my eye, there doesn't seem to be a whole lot of difference between the two of them from a functional point of view. Can someone give me a good explanation of why one vs the other? Sean
1
by: Sarge | last post by:
Hi all, tough question. Apologies for the cross posting but it is an interesting architectural problem and I think deserves a wide audience. What is the best way to extend web service proxy...
173
by: Zytan | last post by:
I've read the docs on this, but one thing was left unclear. It seems as though a Module does not have to be fully qualified. Is this the case? I have source that apparently shows this. Are...
29
by: Dom | last post by:
I'm really confused by the difference between a Struct and a Class? Sometimes, I want just a group of fields to go together. A Class without methods seems wrong, in that it carries too much...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.