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
- ComplusEndpointConfigContainer.cs
- SafeHandles.cs
- DrawingContextDrawingContextWalker.cs
- FreezableCollection.cs
- FirstMatchCodeGroup.cs
- XmlSchemaImport.cs
- CodeAccessPermission.cs
- HtmlTableRowCollection.cs
- InputGestureCollection.cs
- GroupBox.cs
- WindowsContainer.cs
- LocationUpdates.cs
- OrCondition.cs
- BooleanConverter.cs
- Button.cs
- OptimalTextSource.cs
- CodeComment.cs
- XmlStreamNodeWriter.cs
- BaseCollection.cs
- SupportingTokenAuthenticatorSpecification.cs
- LoginUtil.cs
- SynchronizationHandlesCodeDomSerializer.cs
- CollectionBuilder.cs
- TextDecorations.cs
- IPipelineRuntime.cs
- ColorConverter.cs
- PeerApplicationLaunchInfo.cs
- KeyBinding.cs
- DesignSurface.cs
- DocumentPageView.cs
- ContentPlaceHolder.cs
- XmlWellformedWriter.cs
- DesignerSerializationOptionsAttribute.cs
- HwndSubclass.cs
- CharacterHit.cs
- String.cs
- Switch.cs
- MultiView.cs
- OutputCache.cs
- X509ChainElement.cs
- contentDescriptor.cs
- WebPartMinimizeVerb.cs
- TimersDescriptionAttribute.cs
- _CacheStreams.cs
- ButtonRenderer.cs
- EventItfInfo.cs
- MachinePropertyVariants.cs
- TypeConstant.cs
- RotateTransform3D.cs
- ZipIOBlockManager.cs
- SupportingTokenProviderSpecification.cs
- Debug.cs
- PersonalizableTypeEntry.cs
- ImageMap.cs
- DeviceSpecificChoice.cs
- DataGridSortCommandEventArgs.cs
- Model3DGroup.cs
- ItemDragEvent.cs
- PerformanceCounters.cs
- XmlQualifiedNameTest.cs
- InputScopeAttribute.cs
- InternalBufferManager.cs
- FieldNameLookup.cs
- OperandQuery.cs
- ContentValidator.cs
- InvalidEnumArgumentException.cs
- CodeDOMUtility.cs
- NullNotAllowedCollection.cs
- FixedTextSelectionProcessor.cs
- GeneralTransform3DTo2D.cs
- MethodMessage.cs
- ApplicationSecurityManager.cs
- WinFormsSpinner.cs
- Point4DConverter.cs
- _HelperAsyncResults.cs
- DataServiceQueryProvider.cs
- EastAsianLunisolarCalendar.cs
- StylusShape.cs
- SimpleRecyclingCache.cs
- EqualityComparer.cs
- Stack.cs
- PriorityBinding.cs
- ThousandthOfEmRealPoints.cs
- UpdatePanelControlTrigger.cs
- ListViewDeleteEventArgs.cs
- MessageSecurityProtocol.cs
- IdnMapping.cs
- MsmqIntegrationInputMessage.cs
- RequestCachePolicyConverter.cs
- BindStream.cs
- PresentationTraceSources.cs
- LinearQuaternionKeyFrame.cs
- SoapTypeAttribute.cs
- QueryParameter.cs
- WebPartAddingEventArgs.cs
- OnOperation.cs
- DataGridAutoFormatDialog.cs
- XsltSettings.cs
- TimeSpan.cs
- Encoder.cs