如何引用另一个文件中定义的类
我建了一个项目之后,然后新建文件 DbServer.cs,其中用来定义数据库操作的类,如下,我如何在我的Form1.cs中引用这个文件中的类?
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.SqlClient ;
namespace N1
{
public class DBServer
{
public static SqlConnection ConnectDB( string pstr_ServerName , string pstr_DBName , string pstr_UserName ,string pstr_Password)
..
}
}