类库仅适用于控制台应用程序吗? [英] Does class library works only for console application.

查看:203
本文介绍了类库仅适用于控制台应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类库仅适用于控制台应用程序吗?如果要显示世界,那么我们必须编写console.write("Hello world")并进一步在基于Web的环境中运行?

Does class library works only for console application. If I have to display hello world, then we have to write console.write("Hello world") and further does it run in web base?

推荐答案

是的.
请停止一次又一次发布相同的问题.这将帮助您跟进您的答案,并提供答案.
您要求想要用于类库功能的基本代码和如何实现名称空间. [ ^ ]


如何在类库中编写"hello world". cs [ ^ ]

查看这些答案.

我正在为您分享一些有用的教程.请仔细检查一下.
http://www.dotnetheaven.com/Uploadfile/mahesh/pr1202172006014101AM/pr12.aspx [ ^ ]
http://msdn.microsoft.com/en-us/library/cc668164.aspx [ ^ ]
Yes.
Please stop posting same question again and again. It will help you to followup your answer and also, providing the answer.
You asked want basic code for class library function and how to implement namespace.[^]

and
how to write ''hello world'' in classlibrary.cs[^]

Check out those answer.

I am sharing some useful tutorial for you. Please go through them .
http://www.dotnetheaven.com/Uploadfile/mahesh/pr1202172006014101AM/pr12.aspx[^]
http://msdn.microsoft.com/en-us/library/cc668164.aspx[^]


类库是DLL,您可以在其他项目中引用这些DLL,这取决于您实现内部的方式,可以在任何类型的应用程序,控制台,winforms,wpf,web等中使用它们.

通常,类库在没有UI特定说明的情况下实现业务逻辑,因此您可以在任何地方使用它们.

但是您可以拥有特定于平台的库,例如winforms应用程序,这些库是您希望在多个winform项目中使用的代码集合,以简化您的编码和维护.
Class libraries are DLL''s which you can reference in other projects, based on how you implemented the internals you can use them in any type of application, console, winforms, wpf, web etc.

Usually class libraries implement business logic without UI specifics so you can use them any where.

But you can have platform specific libraries for say winforms apps, which are collections of code you would like to use in multiple winform project to simplify your coding and maintenance.


这篇关于类库仅适用于控制台应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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