Пример #1
0
 /// <summary>
 /// 生成引用
 /// </summary>
 /// <typeparam name="T">引用类型</typeparam>
 /// <returns>对象</returns>
 public T Spawn <T>() where T : class, IReference, new()
 {
     return(_helper.Spawn <T>());
 }
Пример #2
0
 /// <summary>
 /// 生成引用
 /// </summary>
 /// <typeparam name="T">引用类型</typeparam>
 /// <returns>对象</returns>
 public T Spawn <T>() where T : class, IReference, new()
 {
     return(_helper.Spawn(typeof(T)) as T);
 }