究竟有多大的.NET(3.5)Framework类库? [英] Exactly how large is the .NET (3.5) Framework Class Library?

查看:258
本文介绍了究竟有多大的.NET(3.5)Framework类库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常阅读该框架仅仅是太大一个开发商有它的每一个组成部分的经验。有一些实际数字肯定有助于把事情的角度。

MSDN似乎全部列出来,但是没有实际的数字(从我可以看到),并花费数小时计数他们不是我的生产时间的想法。

  • 命名空间的数
  • 类数
  • 结构体数
  • 在接口数

我知道也有代表,枚举,事件等,但上述类型最感兴趣的。

另外,基类库(BCL),以及整体框架类库(FCL)的大小类型的数量会很有意思。

这个信息是有用的2种方式:

首先,得到多少,你实际上已经有工作的总体框架和多少,你还是要学的句柄。

其次,从其他平台(和非技术人员),许多程序员常常惊讶,程序员可以花大部分时间的.NET框架之内。有一些数字肯定会有助于解释为什么这不是狭隘的技能/经验的指示。

[更新]

使用安德鲁的code(在我的.NET 3.5 SP1系统)我得到:

类:12688号文件
值类型:4438
接口:1296 

解决方案

2,这些博客文章讨论这个话题:

  • 布拉德·艾布拉姆斯:的在.NET Framework 类型数(跨差异显示的数字。framework版本)
  • 帕特里克Smacchia:<一href="http://$c$cbetter.com/blogs/patricksmacchia/archive/2008/03/18/number-of-types-in-the-net-framework.aspx"相对=nofollow>在.NET Framework 类型数(使用NDepend的)

结果按程序集,命名空间,类型,成员和其他物品的数量进行细分。

I've regularly read that the framework is just too large for one developer to have experience with every part of it. Having some actual numbers would certainly help put things in perspective.

MSDN seems to list them all but there are no actual numbers (from what I could see) and spending hours counting them is not my idea of productive time.

  • Number of Namespaces
  • Number of Classes
  • Number of Structs
  • Number of Interfaces

I realize there are also delegates, enums, events, etc, but the above types are of most interest.

Also, the number of types in the Base Class Library (BCL) as well as the size of the overall Framework Class Library (FCL) would be interesting.

This information would be useful in 2 ways:

Firstly, to get a handle on how much of the overall framework you have actually worked with and how much you still have to learn.

Secondly, many programmers from other platforms (and non-technical people) are often surprised that a programmer can spend most of their time within the ".NET Framework". Having some numbers would certainly help explain why this is not an indication of narrow skills/experience.

[Update]

Using Andrew's code (on my .NET 3.5 SP1 system) I get:

Classes: 12688
Value types: 4438
Interfaces: 1296

解决方案

These 2 blog posts address this topic:

Results are broken down by number of assemblies, namespaces, types, members, and other items.

这篇关于究竟有多大的.NET(3.5)Framework类库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆