简体   繁体   English

设计项目结构时应该注意哪些事项?

[英]What things should I take care while designing the structure of the project?

I think if I add a lot of class files to the project then the performance of the project will be slow.我想如果我在项目中添加很多类文件,那么项目的性能会很慢。 Am I thinking right?我想对了吗?

Note that C# is a compiled language, therefore, all those class files are already compiled and optimized into a single solution at runtime.请注意,C# 是一种编译语言,因此,所有这些类文件都已在运行时编译并优化为单个解决方案。 There exists the possibility of adding too much, always, but I think most web API projects will not even come close to such a limit that will cause application slowdown.总是存在添加过多的可能性,但我认为大多数 Web API 项目甚至不会接近会导致应用程序变慢的限制。

Just a typical empty project created in Visual Studio 2019 will have over 20 class files already in it and loads at runtime rather quickly.只是一个在 Visual Studio 2019 中创建的典型空项目就会有 20 多个类文件,并且在运行时加载速度相当快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM