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
- lengthconverter.cs
- TypeSystem.cs
- SizeChangedEventArgs.cs
- ProtocolsConfiguration.cs
- InvokeProviderWrapper.cs
- TypeListConverter.cs
- XmlElementCollection.cs
- PointLight.cs
- LightweightCodeGenerator.cs
- MenuScrollingVisibilityConverter.cs
- WindowsSecurityToken.cs
- SmtpReplyReaderFactory.cs
- Soap12FormatExtensions.cs
- DictionaryEntry.cs
- CodeAccessSecurityEngine.cs
- OleDbCommandBuilder.cs
- TypeLibraryHelper.cs
- SchemaAttDef.cs
- ConfigUtil.cs
- ContentHostHelper.cs
- ArgumentNullException.cs
- CodeCompiler.cs
- SoapSchemaMember.cs
- GenericAuthenticationEventArgs.cs
- SHA384.cs
- DataGridRow.cs
- SecurityAttributeGenerationHelper.cs
- OleDbError.cs
- TextSimpleMarkerProperties.cs
- SqlXml.cs
- StorageEntitySetMapping.cs
- OleDbTransaction.cs
- FileStream.cs
- Range.cs
- BooleanConverter.cs
- TextRangeSerialization.cs
- ResourceCategoryAttribute.cs
- ColorKeyFrameCollection.cs
- ModelVisual3D.cs
- GridViewRowEventArgs.cs
- CacheChildrenQuery.cs
- DataGridViewSelectedRowCollection.cs
- ChildTable.cs
- Calendar.cs
- ProfilePropertySettingsCollection.cs
- HtmlInputPassword.cs
- ExceptionHelpers.cs
- KnownTypeHelper.cs
- XamlBuildTaskServices.cs
- CalendarDayButton.cs
- DeferredElementTreeState.cs
- FrameworkRichTextComposition.cs
- ExpressionPrefixAttribute.cs
- DataGridViewRowEventArgs.cs
- WindowsListViewGroupHelper.cs
- DetailsViewDeleteEventArgs.cs
- TemplateContentLoader.cs
- IntellisenseTextBox.cs
- WindowsContainer.cs
- SqlProviderServices.cs
- Object.cs
- SectionInput.cs
- AddInStore.cs
- CompiledXpathExpr.cs
- httpapplicationstate.cs
- DataGridCaption.cs
- InputLanguageSource.cs
- DataColumnCollection.cs
- ClockController.cs
- BinaryNode.cs
- XPathDocument.cs
- _SecureChannel.cs
- WmfPlaceableFileHeader.cs
- TargetParameterCountException.cs
- TaiwanLunisolarCalendar.cs
- ClientSettingsSection.cs
- RegexWorker.cs
- WebHttpSecurityModeHelper.cs
- ObjectDataSourceView.cs
- XamlReaderHelper.cs
- ItemsPresenter.cs
- EntitySet.cs
- TemplateControlParser.cs
- BevelBitmapEffect.cs
- ComponentChangingEvent.cs
- SafeNativeMethods.cs
- ColumnWidthChangingEvent.cs
- XmlILModule.cs
- HtmlTableCell.cs
- ForAllOperator.cs
- Matrix3D.cs
- CustomAssemblyResolver.cs
- BindableAttribute.cs
- InvokeHandlers.cs
- WindowsToolbar.cs
- PageParserFilter.cs
- BlurBitmapEffect.cs
- LinqDataSourceUpdateEventArgs.cs
- FixedSOMTableCell.cs
- ContextQuery.cs