示例#1
0
文件: IOC.cs 项目: thornfieldhe/TAF
 /// <summary>
 /// 创建实例
 /// </summary>
 /// <param name="type">
 /// 对象类型
 /// </param>
 /// <returns>
 /// The <see cref="object"/>.
 /// </returns>
 public static object Create(Type type)
 {
     return(Container.Create(type));
 }
示例#2
0
文件: IOC.cs 项目: thornfieldhe/TAF
 /// <summary>
 /// 创建实例
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="type">
 /// 对应映射接口的类型
 /// </param>
 /// <returns></returns>
 public static T Create <T>(string type)
 {
     return(Container.Create <T>(type));
 }
示例#3
0
文件: IOC.cs 项目: thornfieldhe/TAF
 /// <summary>
 /// 创建实例
 /// </summary>
 /// <typeparam name="T">
 /// 实例类型
 /// </typeparam>
 /// <returns>
 /// The <see cref="T"/>.
 /// </returns>
 public static T Create <T>() where T : class
 {
     return(Container.Create <T>());
 }