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
- TypeReference.cs
- DocumentGridPage.cs
- ComponentCommands.cs
- ValidationError.cs
- WrappedIUnknown.cs
- Int16AnimationBase.cs
- DispatcherOperation.cs
- SecurityState.cs
- ServerProtocol.cs
- FixedDocumentSequencePaginator.cs
- GridViewDeleteEventArgs.cs
- TextEditorTyping.cs
- RadioButtonList.cs
- ConnectionStringsExpressionEditor.cs
- EntityDataSourceChangingEventArgs.cs
- ToolZone.cs
- HttpCapabilitiesSectionHandler.cs
- StorageEntityTypeMapping.cs
- SafeHandle.cs
- StringArrayConverter.cs
- DescendantOverDescendantQuery.cs
- KeyInterop.cs
- ConcurrentDictionary.cs
- TypeInitializationException.cs
- FocusWithinProperty.cs
- BlobPersonalizationState.cs
- DesignUtil.cs
- DebugView.cs
- StaticSiteMapProvider.cs
- initElementDictionary.cs
- LayoutTableCell.cs
- TreeNode.cs
- TokenBasedSet.cs
- SymbolTable.cs
- EncryptedData.cs
- FamilyTypefaceCollection.cs
- EventToken.cs
- StatusStrip.cs
- AdjustableArrowCap.cs
- HttpTransportSecurityElement.cs
- storepermission.cs
- DNS.cs
- ByteViewer.cs
- UnaryOperationBinder.cs
- Matrix3D.cs
- ContentFilePart.cs
- ConfigXmlReader.cs
- MenuCommand.cs
- Metafile.cs
- FunctionImportElement.cs
- DoubleCollection.cs
- errorpatternmatcher.cs
- IdleTimeoutMonitor.cs
- SaveWorkflowAsyncResult.cs
- InvalidWMPVersionException.cs
- ContentDisposition.cs
- TreeNodeConverter.cs
- ListSortDescriptionCollection.cs
- TypeConverterHelper.cs
- String.cs
- SHA256.cs
- ThreadStateException.cs
- BaseCodeDomTreeGenerator.cs
- TextElement.cs
- ExpressionVisitor.cs
- CodeNamespace.cs
- ContextMenu.cs
- BinaryObjectInfo.cs
- TypefaceMetricsCache.cs
- BooleanAnimationBase.cs
- XmlUtil.cs
- TextViewBase.cs
- ProfileManager.cs
- IMembershipProvider.cs
- PropertyInfo.cs
- HostElement.cs
- DivideByZeroException.cs
- XPathDocumentIterator.cs
- diagnosticsswitches.cs
- ListDataHelper.cs
- ConfigXmlCDataSection.cs
- WebPartConnectionCollection.cs
- InheritablePropertyChangeInfo.cs
- httpapplicationstate.cs
- DescendantBaseQuery.cs
- RSAOAEPKeyExchangeFormatter.cs
- Icon.cs
- Bits.cs
- LongValidator.cs
- DataRelationCollection.cs
- ClusterSafeNativeMethods.cs
- SlipBehavior.cs
- ThreadStateException.cs
- validation.cs
- SQLInt16Storage.cs
- lengthconverter.cs
- SchemaInfo.cs
- EventMemberCodeDomSerializer.cs
- FontUnit.cs
- Sql8ExpressionRewriter.cs