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
- ConfigPathUtility.cs
- WindowsRichEditRange.cs
- WinCategoryAttribute.cs
- StaticExtensionConverter.cs
- ClockGroup.cs
- Message.cs
- Size.cs
- SwitchLevelAttribute.cs
- WebResponse.cs
- HttpListenerContext.cs
- SmiContextFactory.cs
- ValidatingReaderNodeData.cs
- ElapsedEventArgs.cs
- RelationshipDetailsCollection.cs
- DescendentsWalkerBase.cs
- TextProviderWrapper.cs
- DictionaryKeyPropertyAttribute.cs
- CornerRadiusConverter.cs
- CallbackValidatorAttribute.cs
- CellPartitioner.cs
- Semaphore.cs
- ListControlConvertEventArgs.cs
- DbExpressionVisitor.cs
- CalloutQueueItem.cs
- ColumnWidthChangedEvent.cs
- RoleManagerModule.cs
- ObjectTag.cs
- TreeViewDesigner.cs
- ComponentSerializationService.cs
- WindowsAuthenticationModule.cs
- RemotingSurrogateSelector.cs
- QueryCacheEntry.cs
- CrossAppDomainChannel.cs
- ActivityStateQuery.cs
- PriorityBindingExpression.cs
- ADMembershipProvider.cs
- ExceptionUtil.cs
- EnumDataContract.cs
- FixedElement.cs
- UrlRoutingHandler.cs
- SmiGettersStream.cs
- Message.cs
- SearchForVirtualItemEventArgs.cs
- DocumentPage.cs
- MsmqMessage.cs
- WizardForm.cs
- _HelperAsyncResults.cs
- TextProviderWrapper.cs
- SetMemberBinder.cs
- NativeStructs.cs
- XLinq.cs
- PropertySourceInfo.cs
- CapabilitiesPattern.cs
- base64Transforms.cs
- WindowsTokenRoleProvider.cs
- DbResourceAllocator.cs
- WindowsListViewGroupSubsetLink.cs
- Environment.cs
- TextAdaptor.cs
- EncryptedKey.cs
- CqlLexerHelpers.cs
- HtmlValidatorAdapter.cs
- ListCollectionView.cs
- TableAdapterManagerHelper.cs
- XsdDuration.cs
- ListItemCollection.cs
- CodeNamespaceImport.cs
- OptimisticConcurrencyException.cs
- StatusBarDrawItemEvent.cs
- DynamicMethod.cs
- AlgoModule.cs
- SegmentInfo.cs
- BindingExpressionUncommonField.cs
- HtmlTableRow.cs
- XmlObjectSerializerWriteContext.cs
- TextViewSelectionProcessor.cs
- SimpleLine.cs
- RequestQueryProcessor.cs
- BezierSegment.cs
- LocalClientSecuritySettingsElement.cs
- PolyLineSegmentFigureLogic.cs
- ReferenceConverter.cs
- SQLBinary.cs
- Point3DCollectionValueSerializer.cs
- ExpressionEditorAttribute.cs
- PrintDialog.cs
- EndpointAddressElementBase.cs
- FixedPageProcessor.cs
- ElementMarkupObject.cs
- DLinqColumnProvider.cs
- OAVariantLib.cs
- RSAOAEPKeyExchangeFormatter.cs
- SkinBuilder.cs
- GridViewRowCollection.cs
- LifetimeServices.cs
- XmlWriterSettings.cs
- BinaryUtilClasses.cs
- DocumentPage.cs
- WebBrowserContainer.cs
- METAHEADER.cs