是否有类号码,一个命名空间可以在.NET中的任何限制?号码、空间、NET

2023-09-04 01:04:21 作者:遇见你用光了所有的运气

是否有类号码,一个命名空间可以在.NET中的任何限制?另外是什么类的建议的数量,应该有一个命名空间?

Is there any limit on number of classes that a namespace can have in .net ? Further what is the recommended number of classes that there should be in a namespace?

推荐答案

我尝试过了:我刚刚建立的包括百万类型没有任何问题的组件。然而,在500万C#编译器内存不足: - )

I tried it out: I just built an assembly containing 1,000,000 types without any problem. However at 5,000,000 the C# compiler ran out of memory :-).