关于反射的问题?(高分) 可以啊,Type类,GetCustomAttributes() 等等, 你去查MSDN 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 typeof(Test).Get....(),一堆反射方法, 要什么都有 private static readonly string path = System.Configuration.ConfigurationSettings.AppSettings["WebDAL"]; public DataAccess() { } private static object CreateObjectNoCache(string path, string CacheKey) { try { object objType = Assembly.Load(path).CreateInstance(CacheKey); return objType; } catch //(System.Exception ex) { //string str=ex.Message;// 记录错误日志 return null; } } GetCustomAttributes()方法只能获取类跟属性的特性 ,不能获取方法的特性 连接Access时出错提示文件名不对 c# 求c/s票据套打思路~ 【关于Winform】界面问题 急救,各位弟兄帮帮忙,如何实现开机启动程序,谢谢了, 关于[Windos 窗体 右键功能]的问题 C#:如何在picturebox中显示已捕获的视频 在C#中如何调用这段C++的非托管代码??? 如何在IE的标题栏和状态栏显示信息 quickstart的问题,ASP.NET 部分运行不了了 我该选择哪个东东? c# 知道哈希表的key怎么去value啊 为什么我重定向后不能正确执行bat文件
public DataAccess() { }
private static object CreateObjectNoCache(string path, string CacheKey)
{
try
{
object objType = Assembly.Load(path).CreateInstance(CacheKey);
return objType;
}
catch //(System.Exception ex)
{
//string str=ex.Message;// 记录错误日志
return null;
} }