c#三层架构,小鸟问题,懂c#的进来看看吧

来源:百度知道 编辑:UC知道 时间:2024/06/06 22:48:06
为什么在类库里添加的类,System.Configuration点不出ConfigurationManager来呢
问题解决了,2楼和三楼说的没错
但是谁给讲解下,我给分

要导入这个类库。

using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Data;
using System.Data.OleDb;
using System.Web;

引用里不用添加的 是再系统里可以直接找到的
System.Management 一样需要再引用里添加

添加引用System.configuration

System.Configuration!System.Configuration.ConfigurationManager.AppSettings

只有都为Public的时候才可以。

不是同一个类的问题!!