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
- TextContainer.cs
- VariableAction.cs
- DropShadowBitmapEffect.cs
- EntityTransaction.cs
- IdnElement.cs
- CssClassPropertyAttribute.cs
- DeadCharTextComposition.cs
- StreamGeometry.cs
- DoubleSumAggregationOperator.cs
- DesignerSelectionListAdapter.cs
- AuthenticatedStream.cs
- TraceSection.cs
- OleDbRowUpdatingEvent.cs
- EventItfInfo.cs
- StorageAssociationTypeMapping.cs
- XamlFigureLengthSerializer.cs
- KeyManager.cs
- ImageAutomationPeer.cs
- EntityDataSourceWrapperCollection.cs
- LassoSelectionBehavior.cs
- ShimAsPublicXamlType.cs
- Dictionary.cs
- SHA384Managed.cs
- WindowsSolidBrush.cs
- ChangeConflicts.cs
- ProjectionPathBuilder.cs
- ItemPager.cs
- WebProxyScriptElement.cs
- SafeNativeMethodsCLR.cs
- ExpressionBuilder.cs
- TimelineCollection.cs
- InfoCardKeyedHashAlgorithm.cs
- HMACSHA1.cs
- Token.cs
- _Semaphore.cs
- CmsUtils.cs
- ToolBar.cs
- FixedTextView.cs
- CacheMode.cs
- StickyNoteAnnotations.cs
- XmlQueryCardinality.cs
- SslStream.cs
- TextOutput.cs
- GetWinFXPath.cs
- IPEndPoint.cs
- serverconfig.cs
- TextComposition.cs
- Size.cs
- ProgressChangedEventArgs.cs
- FileChangeNotifier.cs
- IsolatedStorageFilePermission.cs
- PerformanceCountersElement.cs
- LateBoundBitmapDecoder.cs
- JulianCalendar.cs
- FormViewModeEventArgs.cs
- EventLogTraceListener.cs
- ModifierKeysValueSerializer.cs
- RegionInfo.cs
- MatrixValueSerializer.cs
- FormClosingEvent.cs
- EdmConstants.cs
- ObjectStateManagerMetadata.cs
- PagedDataSource.cs
- ReadOnlyDictionary.cs
- BindingList.cs
- FixedSOMLineCollection.cs
- RichTextBoxContextMenu.cs
- BasePattern.cs
- ArrayExtension.cs
- Point3DCollection.cs
- QualificationDataAttribute.cs
- StaticContext.cs
- Stack.cs
- InstancePersistence.cs
- ByteStorage.cs
- CompiledRegexRunnerFactory.cs
- Attributes.cs
- SafeMemoryMappedFileHandle.cs
- VisualStyleInformation.cs
- RadioButtonAutomationPeer.cs
- SeekableReadStream.cs
- GPPOINT.cs
- SystemException.cs
- ClientSponsor.cs
- ClosableStream.cs
- jithelpers.cs
- XmlSchemaAttributeGroupRef.cs
- XPathMultyIterator.cs
- ComPlusTraceRecord.cs
- Vector3DValueSerializer.cs
- CompilerParameters.cs
- UpdatePanel.cs
- RsaSecurityTokenParameters.cs
- ActivityInterfaces.cs
- WebPartDisplayModeCollection.cs
- SpeechSynthesizer.cs
- Selection.cs
- ResourceExpression.cs
- FtpWebResponse.cs
- FlowDocumentScrollViewer.cs