日期:2014-05-18  浏览次数:20548 次

帮我注释一下代码吧


  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);
  }
}


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