object IServiceProvider.GetService(Type serviceType)
 {
     if (!(serviceType == typeof(IFilterResolutionService)))
     {
         return(this._parentHost.GetService(serviceType));
     }
     if (this._localizationFilterService == null)
     {
         IFilterResolutionService realFilterService = (IFilterResolutionService)this._parentHost.GetService(typeof(IFilterResolutionService));
         if (realFilterService == null)
         {
             throw new InvalidOperationException(System.Design.SR.GetString("ControlLocalizer_RequiresFilterService"));
         }
         this._localizationFilterService = new LocalizationFilterResolutionService(realFilterService);
     }
     return(this._localizationFilterService);
 }
 object IServiceProvider.GetService(Type serviceType)
 {
     if (serviceType != typeof(IFilterResolutionService))
     {
         return this._parentHost.GetService(serviceType);
     }
     if (this._localizationFilterService == null)
     {
         IFilterResolutionService realFilterService = (IFilterResolutionService) this._parentHost.GetService(typeof(IFilterResolutionService));
         if (realFilterService == null)
         {
             throw new InvalidOperationException(System.Design.SR.GetString("ControlLocalizer_RequiresFilterService"));
         }
         this._localizationFilterService = new LocalizationFilterResolutionService(realFilterService);
     }
     return this._localizationFilterService;
 }