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
- SamlConstants.cs
- Pkcs7Recipient.cs
- XPathCompileException.cs
- SystemResourceHost.cs
- MexBindingElement.cs
- DetailsView.cs
- DataListItemCollection.cs
- DesignerCategoryAttribute.cs
- OutputScopeManager.cs
- ImageSourceValueSerializer.cs
- XmlNodeList.cs
- MailAddress.cs
- ClientSettingsProvider.cs
- TransformerInfoCollection.cs
- ValidationSummary.cs
- MetadataExporter.cs
- TypeInfo.cs
- WmlLabelAdapter.cs
- GlobalProxySelection.cs
- UnitySerializationHolder.cs
- Type.cs
- HwndProxyElementProvider.cs
- DeclaredTypeValidator.cs
- WindowsGraphicsCacheManager.cs
- embossbitmapeffect.cs
- StringInfo.cs
- ZipIOLocalFileHeader.cs
- ModuleBuilder.cs
- EntityFunctions.cs
- HttpModule.cs
- SmtpTransport.cs
- BufferCache.cs
- Preprocessor.cs
- FamilyMapCollection.cs
- WorkflowInstanceRecord.cs
- JournalEntryListConverter.cs
- MulticastDelegate.cs
- CompiledXpathExpr.cs
- HandlerFactoryWrapper.cs
- GenerateTemporaryAssemblyTask.cs
- ConnectorEditor.cs
- wmiutil.cs
- InputReportEventArgs.cs
- Hashtable.cs
- ObjectIDGenerator.cs
- StorageInfo.cs
- TableParaClient.cs
- StoreItemCollection.cs
- HttpContextWrapper.cs
- EdmProperty.cs
- Pool.cs
- LabelLiteral.cs
- SafeBitVector32.cs
- DesignerCapabilities.cs
- Compiler.cs
- filewebrequest.cs
- SecureUICommand.cs
- ServiceContractGenerator.cs
- ServiceDebugBehavior.cs
- DBDataPermission.cs
- DataRowCollection.cs
- ConfigurationElement.cs
- PerformanceCounterCategory.cs
- BinaryConverter.cs
- XmlNavigatorFilter.cs
- ProcessThread.cs
- XmlChildNodes.cs
- SecurityVersion.cs
- UnsafeNativeMethodsTablet.cs
- ContactManager.cs
- TextDataBindingHandler.cs
- XMLDiffLoader.cs
- CompModSwitches.cs
- WorkflowDispatchContext.cs
- ReadOnlyTernaryTree.cs
- XmlAttributeOverrides.cs
- WindowsScrollBar.cs
- RawStylusInputCustomDataList.cs
- AttributeCollection.cs
- SoapSchemaImporter.cs
- DbTransaction.cs
- SqlRecordBuffer.cs
- TextTabProperties.cs
- EncoderParameters.cs
- GridViewCancelEditEventArgs.cs
- BindingsCollection.cs
- EncryptedData.cs
- Attributes.cs
- BamlLocalizableResourceKey.cs
- EntityStoreSchemaFilterEntry.cs
- InternalDispatchObject.cs
- DropAnimation.xaml.cs
- DetailsViewDeletedEventArgs.cs
- PermissionListSet.cs
- COAUTHINFO.cs
- SqlClientWrapperSmiStream.cs
- BulletedList.cs
- BooleanKeyFrameCollection.cs
- NativeMethods.cs
- Vars.cs