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
- ProfileSection.cs
- ToolStripDropDownItemDesigner.cs
- AsymmetricKeyExchangeDeformatter.cs
- ContextMarshalException.cs
- FixedPosition.cs
- AffineTransform3D.cs
- FullTextLine.cs
- Error.cs
- StringComparer.cs
- WebBrowsableAttribute.cs
- Int64Storage.cs
- LoginView.cs
- _HelperAsyncResults.cs
- TemplateAction.cs
- IgnoreFileBuildProvider.cs
- IsolatedStorage.cs
- AnnotationResourceChangedEventArgs.cs
- FixedSOMTableCell.cs
- DiagnosticsConfiguration.cs
- CompositionAdorner.cs
- SqlEnums.cs
- SerialStream.cs
- Evaluator.cs
- CodeAttributeDeclaration.cs
- Camera.cs
- PolyLineSegment.cs
- TableLayoutPanelCellPosition.cs
- FixedDocument.cs
- UIElementPropertyUndoUnit.cs
- ToolStrip.cs
- HttpGetProtocolImporter.cs
- UInt16.cs
- HealthMonitoringSectionHelper.cs
- WindowsToolbar.cs
- ScriptingWebServicesSectionGroup.cs
- SystemDiagnosticsSection.cs
- SqlDataSourceCommandEventArgs.cs
- PasswordBox.cs
- Condition.cs
- IssuanceTokenProviderBase.cs
- XmlSerializableWriter.cs
- DataGridViewBindingCompleteEventArgs.cs
- SqlMethods.cs
- VersionedStream.cs
- WindowsSolidBrush.cs
- TemplateBindingExtensionConverter.cs
- Vertex.cs
- SymbolEqualComparer.cs
- QueryCacheManager.cs
- ArgumentOutOfRangeException.cs
- TableRow.cs
- SecurityCriticalDataForSet.cs
- AutomationEvent.cs
- FixedTextContainer.cs
- Rect3D.cs
- QilXmlReader.cs
- RelationshipType.cs
- Image.cs
- MatrixCamera.cs
- TextServicesCompartmentContext.cs
- ListViewCancelEventArgs.cs
- ColumnMapTranslator.cs
- COSERVERINFO.cs
- XPathChildIterator.cs
- IResourceProvider.cs
- ObjectDataProvider.cs
- DataMemberAttribute.cs
- TreeView.cs
- MappingException.cs
- TreeNodeStyleCollection.cs
- serverconfig.cs
- ProcessInfo.cs
- HtmlTableCell.cs
- RuleSetReference.cs
- HostingEnvironment.cs
- Cursors.cs
- AnalyzedTree.cs
- EntryPointNotFoundException.cs
- BaseValidatorDesigner.cs
- WebPartCatalogAddVerb.cs
- FileChangesMonitor.cs
- ViewCellRelation.cs
- FormViewInsertEventArgs.cs
- LocalizabilityAttribute.cs
- TargetParameterCountException.cs
- DataGridViewRowCollection.cs
- FixedSOMLineRanges.cs
- UpdateRecord.cs
- StreamResourceInfo.cs
- EntityPropertyMappingAttribute.cs
- DispatcherOperation.cs
- ObjectPropertyMapping.cs
- SyntaxCheck.cs
- LabelAutomationPeer.cs
- MetaModel.cs
- String.cs
- DelayedRegex.cs
- FileAuthorizationModule.cs
- Rules.cs
- unsafeIndexingFilterStream.cs