예제 #1
0
 /// <summary>
 /// 创建实例
 /// </summary>
 /// <param name="type">对象类型</param>
 public static object Create(Type type)
 {
     return(Container.Create(type));
 }
예제 #2
0
 /// <summary>
 /// 创建实例
 /// </summary>
 /// <typeparam name="T">实例类型</typeparam>
 public static T Create <T>()
 {
     return(Container.Create <T>());
 }