public interface IObjectFactory where T : class { /// /// 创建对象 /// /// T Create(); /// /// 销毁对象 /// /// void Destroy(T obj); /// /// 重置对象 /// /// void Reset(T obj); /// /// 验证对象 /// /// /// bool Validate(T obj); }