Code:
/ DotNET / DotNET / 8.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
- StrongNameMembershipCondition.cs
- OrderToken.cs
- ImpersonationContext.cs
- DefaultHttpHandler.cs
- LineInfo.cs
- RtfFormatStack.cs
- DataGridTable.cs
- InfoCardArgumentException.cs
- CursorConverter.cs
- TextParentUndoUnit.cs
- NonClientArea.cs
- IdentityHolder.cs
- ButtonFieldBase.cs
- SiteIdentityPermission.cs
- HtmlForm.cs
- OutOfProcStateClientManager.cs
- XsdCachingReader.cs
- CreateSequenceResponse.cs
- ContentElementAutomationPeer.cs
- DetailsViewUpdateEventArgs.cs
- KnownTypesHelper.cs
- SoapSchemaImporter.cs
- ExpressionBuilder.cs
- EnumConverter.cs
- DataGridViewCell.cs
- FixedPage.cs
- Buffer.cs
- TextParaLineResult.cs
- PtsContext.cs
- ResourceProviderFactory.cs
- ServiceDescriptionSerializer.cs
- WorkflowWebService.cs
- SslSecurityTokenParameters.cs
- DataGridViewSortCompareEventArgs.cs
- AttachedAnnotationChangedEventArgs.cs
- GridPattern.cs
- InputReport.cs
- AutomationTextAttribute.cs
- NamedPermissionSet.cs
- smtpconnection.cs
- UnionExpr.cs
- SettingsBase.cs
- ColumnHeader.cs
- PageCatalogPart.cs
- SplitterEvent.cs
- IISUnsafeMethods.cs
- CqlQuery.cs
- InkCanvasSelection.cs
- ModuleBuilderData.cs
- GridEntryCollection.cs
- ArglessEventHandlerProxy.cs
- FieldTemplateFactory.cs
- WebPartUtil.cs
- DataExchangeServiceBinder.cs
- Graphics.cs
- ToolStripOverflow.cs
- NetSectionGroup.cs
- PathParser.cs
- ControlType.cs
- SynchronizationScope.cs
- Accessible.cs
- HtmlFormParameterWriter.cs
- Main.cs
- XsltCompileContext.cs
- PageSetupDialog.cs
- httpserverutility.cs
- DisplayMemberTemplateSelector.cs
- TextParentUndoUnit.cs
- CodeDelegateCreateExpression.cs
- SiteMapNode.cs
- WebRequestModulesSection.cs
- XPathNode.cs
- CodeCommentStatement.cs
- DocobjHost.cs
- FileVersionInfo.cs
- DelegatingConfigHost.cs
- InstanceData.cs
- NavigationProperty.cs
- PathFigureCollectionValueSerializer.cs
- StringSorter.cs
- AlignmentXValidation.cs
- TreeNodeStyle.cs
- GeometryModel3D.cs
- EventlogProvider.cs
- ResourceExpressionBuilder.cs
- XmlSchemaCollection.cs
- KeyNotFoundException.cs
- QilIterator.cs
- codemethodreferenceexpression.cs
- TrackPoint.cs
- EventLogHandle.cs
- TCPClient.cs
- InputScopeConverter.cs
- MtomMessageEncodingBindingElement.cs
- DataSourceView.cs
- DocComment.cs
- WebPartConnectionCollection.cs
- CacheMemory.cs
- BitmapEffectGeneralTransform.cs
- UniqueConstraint.cs