Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / Host / HostDesigntimeLicenseContext.cs / 1 / HostDesigntimeLicenseContext.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ namespace System.ComponentModel.Design { ////// /// This class will provide a license context that the LicenseManager can use /// to get to the design time services, like ITypeResolutionService. /// internal class HostDesigntimeLicenseContext : DesigntimeLicenseContext { private IServiceProvider provider; public HostDesigntimeLicenseContext(IServiceProvider provider) { this.provider = provider; } public override object GetService(Type serviceClass) { return provider.GetService(serviceClass); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FilterQuery.cs
- UxThemeWrapper.cs
- RowsCopiedEventArgs.cs
- TextEditor.cs
- SimpleRecyclingCache.cs
- TypeDescriptionProviderAttribute.cs
- SyndicationPerson.cs
- MSAAEventDispatcher.cs
- PartBasedPackageProperties.cs
- Int32EqualityComparer.cs
- IPCCacheManager.cs
- ControlCollection.cs
- ColorBlend.cs
- SystemDiagnosticsSection.cs
- TransformConverter.cs
- XamlPoint3DCollectionSerializer.cs
- IRCollection.cs
- ValidationUtility.cs
- SAPIEngineTypes.cs
- DispatchChannelSink.cs
- PassportAuthenticationEventArgs.cs
- DelegateOutArgument.cs
- TreeNode.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlILOptimizerVisitor.cs
- EditorPartCollection.cs
- ButtonBase.cs
- RowUpdatedEventArgs.cs
- SocketAddress.cs
- InvokeHandlers.cs
- NetCodeGroup.cs
- FileIOPermission.cs
- TransactionScope.cs
- ToolStripDropDownClosedEventArgs.cs
- WinOEToolBoxItem.cs
- BaseContextMenu.cs
- Sequence.cs
- InheritedPropertyChangedEventArgs.cs
- ManagementBaseObject.cs
- HealthMonitoringSectionHelper.cs
- controlskin.cs
- ActivitySurrogateSelector.cs
- PathStreamGeometryContext.cs
- OperationDescriptionCollection.cs
- HighContrastHelper.cs
- PingOptions.cs
- ImageListUtils.cs
- SqlRowUpdatedEvent.cs
- ObjectViewQueryResultData.cs
- XmlNotation.cs
- EqualityComparer.cs
- OutputCacheSettingsSection.cs
- CollectionViewGroupInternal.cs
- BCLDebug.cs
- ObjectSecurity.cs
- Context.cs
- LockCookie.cs
- ProgressBarAutomationPeer.cs
- NavigationPropertySingletonExpression.cs
- ByteFacetDescriptionElement.cs
- DependencyPropertyAttribute.cs
- OutputScopeManager.cs
- SmiEventSink_DeferedProcessing.cs
- DataServiceContext.cs
- SemanticAnalyzer.cs
- RelativeSource.cs
- DurableInstanceManager.cs
- DataGridViewTextBoxEditingControl.cs
- KeySpline.cs
- RadioButtonList.cs
- ExpressionBindings.cs
- EnumMember.cs
- VisualStyleInformation.cs
- ValidationErrorCollection.cs
- SqlGatherProducedAliases.cs
- OleDbParameter.cs
- RunClient.cs
- NameValueConfigurationElement.cs
- FixedSOMLineRanges.cs
- LinqToSqlWrapper.cs
- LocationFactory.cs
- PeerCustomResolverElement.cs
- BitConverter.cs
- InvalidComObjectException.cs
- ServiceNotStartedException.cs
- ToolStripSettings.cs
- DynamicMethod.cs
- ToolStripComboBox.cs
- CqlWriter.cs
- ProtectedConfigurationSection.cs
- Assert.cs
- NotificationContext.cs
- TextDecorationCollection.cs
- SplitContainer.cs
- ISSmlParser.cs
- ResolvePPIDRequest.cs
- ButtonStandardAdapter.cs
- ShapingEngine.cs
- GatewayDefinition.cs
- DataControlFieldCollection.cs