示例#1
0
 public virtual T GetService <T>()
     where T : IService
 {
     return((T)GetService(ServiceType.FromRuntimeType(typeof(T))));
 }