/// <summary> /// 创建实例 /// </summary> /// <param name="type"> /// 对象类型 /// </param> /// <returns> /// The <see cref="object"/>. /// </returns> public static object Create(Type type) { return(Container.Create(type)); }
/// <summary> /// 创建实例 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="type"> /// 对应映射接口的类型 /// </param> /// <returns></returns> public static T Create <T>(string type) { return(Container.Create <T>(type)); }
/// <summary> /// 创建实例 /// </summary> /// <typeparam name="T"> /// 实例类型 /// </typeparam> /// <returns> /// The <see cref="T"/>. /// </returns> public static T Create <T>() where T : class { return(Container.Create <T>()); }