Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Host / ExtenderProviderService.cs / 1 / ExtenderProviderService.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design { using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design; using System.Design; using System.Diagnostics; ////// The extender provider service actually provides two services: IExtenderProviderService, /// which allows other objects to add and remove extender providers, and IExtenderListService, /// which is used by TypeDescriptor to discover the set of extender providers. /// internal sealed class ExtenderProviderService : IExtenderProviderService, IExtenderListService { private ArrayList _providers; ////// Internal ctor to prevent semitrust from creating us. /// internal ExtenderProviderService() { } ////// IExtenderProvider[] IExtenderListService.GetExtenderProviders() { if (_providers != null) { IExtenderProvider[] providers = new IExtenderProvider[_providers.Count]; _providers.CopyTo(providers, 0); return providers; } return new IExtenderProvider[0]; } ///Gets the set of extender providers for the component. ////// void IExtenderProviderService.AddExtenderProvider(IExtenderProvider provider) { if (provider == null) { throw new ArgumentNullException("provider"); } if (_providers == null) { _providers = new ArrayList(4); } if (_providers.Contains(provider)) { throw new ArgumentException(SR.GetString(SR.ExtenderProviderServiceDuplicateProvider, provider)); } _providers.Add(provider); } ////// Adds an extender provider. /// ////// void IExtenderProviderService.RemoveExtenderProvider(IExtenderProvider provider) { if (provider == null) { throw new ArgumentNullException("provider"); } if (_providers != null) { _providers.Remove(provider); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved./// Removes /// an extender provider. /// ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UIPermission.cs
- XmlSchemaValidator.cs
- UniformGrid.cs
- listviewsubitemcollectioneditor.cs
- QueryResponse.cs
- sqlnorm.cs
- CompleteWizardStep.cs
- NameValueCollection.cs
- MLangCodePageEncoding.cs
- LinearGradientBrush.cs
- ResourceDisplayNameAttribute.cs
- IISUnsafeMethods.cs
- MethodImplAttribute.cs
- ToolStripButton.cs
- DataGridTextBoxColumn.cs
- XAMLParseException.cs
- ListBindableAttribute.cs
- SHA1CryptoServiceProvider.cs
- clipboard.cs
- XmlReflectionImporter.cs
- ElementNotEnabledException.cs
- DataPager.cs
- RoutedEventValueSerializer.cs
- InternalCache.cs
- ImageDrawing.cs
- HelloMessage11.cs
- OrthographicCamera.cs
- MethodRental.cs
- TransactionManager.cs
- SqlProviderServices.cs
- WithStatement.cs
- RequestCachePolicy.cs
- CircleHotSpot.cs
- OracleConnectionString.cs
- Stackframe.cs
- InternalResources.cs
- ParsedAttributeCollection.cs
- ConditionalExpression.cs
- BuildResult.cs
- TextServicesLoader.cs
- ImageListDesigner.cs
- IDispatchConstantAttribute.cs
- ItemsControl.cs
- SettingsPropertyValue.cs
- UseLicense.cs
- CodeValidator.cs
- WrapPanel.cs
- EndSelectCardRequest.cs
- SapiAttributeParser.cs
- ProviderConnectionPoint.cs
- ProtectedConfigurationSection.cs
- ArrangedElementCollection.cs
- QilVisitor.cs
- DataContractSerializerOperationBehavior.cs
- EventEntry.cs
- XomlCompilerResults.cs
- SafeFileHandle.cs
- TemplateBaseAction.cs
- CachedRequestParams.cs
- _SslState.cs
- QuaternionKeyFrameCollection.cs
- MutexSecurity.cs
- _NTAuthentication.cs
- EventLogTraceListener.cs
- FormViewInsertedEventArgs.cs
- XPathBuilder.cs
- FontStyleConverter.cs
- XmlMapping.cs
- ICspAsymmetricAlgorithm.cs
- AutoResizedEvent.cs
- IPipelineRuntime.cs
- FastPropertyAccessor.cs
- RefreshInfo.cs
- SqlCommand.cs
- HiddenFieldPageStatePersister.cs
- EditCommandColumn.cs
- PropertyValueChangedEvent.cs
- ApplicationFileParser.cs
- RegexCharClass.cs
- XmlQueryType.cs
- WebSysDisplayNameAttribute.cs
- BevelBitmapEffect.cs
- InvokeMemberBinder.cs
- EdmToObjectNamespaceMap.cs
- ServiceReflector.cs
- GlobalDataBindingHandler.cs
- _Events.cs
- XmlSchemaNotation.cs
- TypeHelpers.cs
- RootBrowserWindowAutomationPeer.cs
- TextSelection.cs
- Predicate.cs
- FixedBufferAttribute.cs
- XmlAttributeCollection.cs
- Win32.cs
- ImmutableAssemblyCacheEntry.cs
- BufferAllocator.cs
- SimpleBitVector32.cs
- validationstate.cs
- XslVisitor.cs