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
- SharedPersonalizationStateInfo.cs
- NativeMethods.cs
- ColorTransformHelper.cs
- EncoderExceptionFallback.cs
- CDSsyncETWBCLProvider.cs
- LogLogRecordEnumerator.cs
- ElementNotEnabledException.cs
- FrameworkElementAutomationPeer.cs
- SqlGenerator.cs
- PhysicalOps.cs
- String.cs
- BuildProvider.cs
- ScriptServiceAttribute.cs
- VisualStateGroup.cs
- TimelineGroup.cs
- EnvironmentPermission.cs
- SqlDataSourceSelectingEventArgs.cs
- ImageSource.cs
- ShaderEffect.cs
- DeploymentSectionCache.cs
- VersionedStream.cs
- RuntimeUtils.cs
- LinkUtilities.cs
- Directory.cs
- ArgumentOutOfRangeException.cs
- TextViewSelectionProcessor.cs
- Exceptions.cs
- TimeoutHelper.cs
- PasswordTextNavigator.cs
- UserControl.cs
- SmtpNtlmAuthenticationModule.cs
- TextFormatterImp.cs
- objectquery_tresulttype.cs
- RemotingConfiguration.cs
- Random.cs
- VisualProxy.cs
- ScriptingJsonSerializationSection.cs
- LinqDataSourceSelectEventArgs.cs
- ReadonlyMessageFilter.cs
- SocketPermission.cs
- PropertyValueUIItem.cs
- XmlMtomReader.cs
- Point.cs
- NamespaceEmitter.cs
- ResourceSetExpression.cs
- OleDbPermission.cs
- PointAnimationUsingKeyFrames.cs
- RawStylusActions.cs
- InputMethod.cs
- Stream.cs
- OleDbConnectionInternal.cs
- cookiecontainer.cs
- WebBrowserProgressChangedEventHandler.cs
- RefreshEventArgs.cs
- TypeSystem.cs
- NameValueConfigurationCollection.cs
- DoWorkEventArgs.cs
- ThaiBuddhistCalendar.cs
- GridView.cs
- OdbcRowUpdatingEvent.cs
- EditCommandColumn.cs
- ColorDialog.cs
- SqlUtils.cs
- ContentType.cs
- CompModSwitches.cs
- TraceHwndHost.cs
- SortQuery.cs
- NGCUIElementCollectionSerializerAsync.cs
- SchemaImporterExtensionsSection.cs
- DetailsViewUpdateEventArgs.cs
- TextRenderer.cs
- HostedTransportConfigurationBase.cs
- HelpEvent.cs
- NavigationHelper.cs
- ThemeDirectoryCompiler.cs
- HttpPostProtocolReflector.cs
- ByteStorage.cs
- ZoneButton.cs
- SolidColorBrush.cs
- ResourceSet.cs
- SharedPersonalizationStateInfo.cs
- BrowserDefinitionCollection.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- TraceSource.cs
- UnknownBitmapDecoder.cs
- UidPropertyAttribute.cs
- KeyValueSerializer.cs
- WindowsFormsHostAutomationPeer.cs
- EdmError.cs
- SafeProcessHandle.cs
- BaseHashHelper.cs
- ErrorEventArgs.cs
- GridEntryCollection.cs
- Grant.cs
- BaseTreeIterator.cs
- SqlStream.cs
- XmlResolver.cs
- BoolExpr.cs
- WebUtility.cs
- ControlBindingsCollection.cs