Code:
/ FX-1434 / FX-1434 / 1.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
- ObjectConverter.cs
- MethodBuilder.cs
- Focus.cs
- BrowserDefinition.cs
- SignerInfo.cs
- JoinTreeSlot.cs
- CallInfo.cs
- SecureEnvironment.cs
- Visual3D.cs
- HybridCollection.cs
- PathGeometry.cs
- InternalCache.cs
- COM2PropertyPageUITypeConverter.cs
- PrivilegeNotHeldException.cs
- SqlCharStream.cs
- Types.cs
- ChangeConflicts.cs
- KeyFrames.cs
- Highlights.cs
- TaskResultSetter.cs
- MulticastOption.cs
- VirtualPathUtility.cs
- Html32TextWriter.cs
- TextRangeProviderWrapper.cs
- MultiPageTextView.cs
- AutomationProperties.cs
- CompleteWizardStep.cs
- WeakRefEnumerator.cs
- AutomationIdentifier.cs
- DescendentsWalker.cs
- StringToken.cs
- XPathBinder.cs
- ShimAsPublicXamlType.cs
- SafeRightsManagementSessionHandle.cs
- ComboBoxAutomationPeer.cs
- Metafile.cs
- ContextMarshalException.cs
- EdmSchemaAttribute.cs
- SqlDataSourceCommandEventArgs.cs
- StylusButtonCollection.cs
- ToolStripContainer.cs
- RtfToXamlLexer.cs
- Separator.cs
- TextEditorParagraphs.cs
- CachingHintValidation.cs
- FixedSOMImage.cs
- XPathNavigator.cs
- PasswordRecovery.cs
- ButtonStandardAdapter.cs
- ObjectPropertyMapping.cs
- Site.cs
- _SslStream.cs
- ListViewDeletedEventArgs.cs
- ItemCollectionEditor.cs
- DataControlLinkButton.cs
- PageParserFilter.cs
- BooleanConverter.cs
- _IPv6Address.cs
- TemplateBindingExpressionConverter.cs
- ChannelBinding.cs
- AlphabeticalEnumConverter.cs
- MenuItemAutomationPeer.cs
- _TransmitFileOverlappedAsyncResult.cs
- Page.cs
- ProcessInfo.cs
- TextLineBreak.cs
- DoubleIndependentAnimationStorage.cs
- DesignerAutoFormat.cs
- ListQueryResults.cs
- SqlServer2KCompatibilityAnnotation.cs
- EventDescriptor.cs
- BrowserCapabilitiesCompiler.cs
- Rules.cs
- RequiredFieldValidator.cs
- DebugView.cs
- OutputCacheSettings.cs
- FormsIdentity.cs
- InputLanguage.cs
- PreservationFileWriter.cs
- EntityTypeBase.cs
- DrawingGroup.cs
- FixUp.cs
- ResXBuildProvider.cs
- GridViewCancelEditEventArgs.cs
- CodeConditionStatement.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ProfileSettingsCollection.cs
- SystemDropShadowChrome.cs
- AppDomainUnloadedException.cs
- BamlLocalizationDictionary.cs
- WebPartConnectionsConnectVerb.cs
- CollectionExtensions.cs
- DataGridViewLinkColumn.cs
- FrameworkName.cs
- XmlSchemaType.cs
- securestring.cs
- UniqueConstraint.cs
- TransactionTable.cs
- CompoundFileStorageReference.cs
- BitmapImage.cs