当前位置: 代码迷 >> ASP.NET >> 帮小弟我注释一下代码吧
  详细解决方案

帮小弟我注释一下代码吧

热度:7607   发布时间:2013-02-25 00:00:00.0
帮我注释一下代码吧


  public static class DependencyAccess
{  
  public static IPetShopCacheDependency CreateCategoryDependency()
  {
  return LoadInstance("Category");
  }
  public static IPetShopCacheDependency CreateProductDependency()
  {
  return LoadInstance("Product");
  }
  public static IPetShopCacheDependency CreateItemDependency()
  {
  return LoadInstance("Item");
  }
  private static IPetShopCacheDependency LoadInstance(string className)
  {
  string path = ConfigurationManager.AppSettings["CacheDependencyAssembly"];
  string fullyQualifiedClass = path + "." + className;
  return (IPetShopCacheDependency)Assembly.Load(path).CreateInstance(fullyQualifiedClass);
  }
}


------解决方案--------------------------------------------------------
自已查,最基本的语法
------解决方案--------------------------------------------------------
你这个玩笑是不是点大呀,这样你将无所获呀,还是自己弄吧
  相关解决方案