通用C#查询 [英] general C# query
本文介绍了通用C#查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我是C#的新手,我想知道两件事
1)如果我从类库或空项目启动代码,therea会有所不同吗?
2)当您向项目中添加新的iteam时,您会看到有很多选择,在这两个之间,有两个分别是类"和类库"的区别是什么?
非常感谢
Hello guys, Im new to C# and i wonder two things
1)is therea difference if i start my code with a class library or an empty project?
2)when you add a new iteam to a project you can see that there are plenty of options, between those there are two call "class"and "class library" what are the diferences?
Thanks very much
推荐答案
1)类库项目将为您提供DLL程序集,并为您生成一个默认类.空项目不会给您任何帮助,并且默认为Exe程序集.
2)您可以将一个类添加到项目中.您不能将类库项目添加到项目中,但是可以将类库项目添加到解决方案中(这可能会使您感到困惑).
1) The class library project will give you a DLL assembly and also generate a default class for you. The empty project gives you nothing, and will default to an Exe assembly.
2) You can add a class to a project. You cannot add a class library to a project, but you can add a class library project to a solution (that''s probably what confused you).
这篇关于通用C#查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文