当前位置导航:炫浪网>>网络学院>>网页制作>>ASP.NET教程

DLL的应用。


csc /target:library OutPut.cs
csc /reference:OutPut.dll class1.cs
一:
using System;
public class OutPut
{
private string OutPutWord;
public OutPut(string OutWord)
{
OutPutWord=OutWord;
Console.WriteLine(OutPutWord);
}
}
二:
using System;
namespace ConsoleApplication5
{
///
/// Class1 的摘要说明。
///

class Class1
{
///
/// 应用程序的主入口点。
///

[STAThread]
static void Main(string[] args)
{
OutPut h=new OutPut("HelloWorld!");
// TODO: 在此处添加代码以启动应用程序 // } }}
相关内容
赞助商链接