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
- XMLSyntaxException.cs
- RenderData.cs
- DateTimeValueSerializerContext.cs
- DataGridViewCellFormattingEventArgs.cs
- RowsCopiedEventArgs.cs
- ProofTokenCryptoHandle.cs
- SoapAttributeAttribute.cs
- DbConvert.cs
- Thickness.cs
- QilReference.cs
- ChangeTracker.cs
- PagesSection.cs
- Int32EqualityComparer.cs
- ConvertersCollection.cs
- handlecollector.cs
- CompositeScriptReferenceEventArgs.cs
- TypeConverterAttribute.cs
- MetadataArtifactLoaderResource.cs
- ILGenerator.cs
- DebugControllerThread.cs
- PolicyManager.cs
- RectAnimationUsingKeyFrames.cs
- CriticalFinalizerObject.cs
- DragEventArgs.cs
- WsatConfiguration.cs
- ActivityDesigner.cs
- BrowserCapabilitiesFactoryBase.cs
- EdmItemCollection.OcAssemblyCache.cs
- FormClosingEvent.cs
- ByteFacetDescriptionElement.cs
- BamlVersionHeader.cs
- WebPartVerbCollection.cs
- ScrollPattern.cs
- PagedControl.cs
- MarshalDirectiveException.cs
- TagNameToTypeMapper.cs
- VisualStyleTypesAndProperties.cs
- CatalogPartCollection.cs
- securitymgrsite.cs
- CustomWebEventKey.cs
- PreviewPageInfo.cs
- DataGridViewCellCancelEventArgs.cs
- KeyGestureConverter.cs
- EllipticalNodeOperations.cs
- CompilerScopeManager.cs
- Point3DAnimation.cs
- BulletChrome.cs
- UIElementHelper.cs
- KeyInstance.cs
- AttributeAction.cs
- DesignerVerb.cs
- CollectionsUtil.cs
- SQLResource.cs
- GlyphCollection.cs
- ExpressionParser.cs
- InstanceKeyView.cs
- SafeFindHandle.cs
- NestPullup.cs
- ResourceManager.cs
- MembershipPasswordException.cs
- DesignerDataStoredProcedure.cs
- DataSetUtil.cs
- DesignerAdapterAttribute.cs
- CounterSampleCalculator.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- BitmapEffectGroup.cs
- Model3D.cs
- TextCompositionEventArgs.cs
- ProviderConnectionPointCollection.cs
- EventSinkHelperWriter.cs
- UndoManager.cs
- ProxyGenerationError.cs
- ResourceContainer.cs
- StringBlob.cs
- XmlAggregates.cs
- ProvidePropertyAttribute.cs
- SignatureResourcePool.cs
- ConfigDefinitionUpdates.cs
- ValidatorCollection.cs
- Choices.cs
- UrlPropertyAttribute.cs
- UpdatePanelTriggerCollection.cs
- CapabilitiesRule.cs
- RegexWorker.cs
- List.cs
- XmlLoader.cs
- PlatformCulture.cs
- DataGridCell.cs
- PostBackOptions.cs
- DataGridViewCellCancelEventArgs.cs
- StringSorter.cs
- ElementProxy.cs
- ObservableDictionary.cs
- HotSpot.cs
- HttpCapabilitiesBase.cs
- MonitorWrapper.cs
- DragEvent.cs
- MatrixTransform.cs
- TransformerInfo.cs
- ConnectionStringsExpressionBuilder.cs