Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / ResourceKey.cs / 1305600 / ResourceKey.cs
/****************************************************************************\ * * File: ResourceKey.cs * * Base class for various types of key objects to use in resource dictionaries. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Reflection; using System.Windows.Markup; namespace System.Windows { ////// Abstract base class for various resource keys. /// Provides a common base for simple key detection in resource components. /// [MarkupExtensionReturnType(typeof(ResourceKey))] public abstract class ResourceKey : MarkupExtension { ////// Used to determine where to look for the resource dictionary that holds this resource. /// public abstract Assembly Assembly { get; } ////// Return this object. ResourceKeys are typically used as a key in a dictionary. /// public override object ProvideValue(IServiceProvider serviceProvider) { return this; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: ResourceKey.cs * * Base class for various types of key objects to use in resource dictionaries. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Reflection; using System.Windows.Markup; namespace System.Windows { ////// Abstract base class for various resource keys. /// Provides a common base for simple key detection in resource components. /// [MarkupExtensionReturnType(typeof(ResourceKey))] public abstract class ResourceKey : MarkupExtension { ////// Used to determine where to look for the resource dictionary that holds this resource. /// public abstract Assembly Assembly { get; } ////// Return this object. ResourceKeys are typically used as a key in a dictionary. /// public override object ProvideValue(IServiceProvider serviceProvider) { return this; } } } // 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
- ObjectDataSourceMethodEventArgs.cs
- TableItemPatternIdentifiers.cs
- IsolatedStorageException.cs
- MultiPropertyDescriptorGridEntry.cs
- Viewport3DAutomationPeer.cs
- EmbossBitmapEffect.cs
- FileAuthorizationModule.cs
- ScriptResourceInfo.cs
- WebPartTransformerAttribute.cs
- ColumnHeader.cs
- RefExpr.cs
- XmlIlGenerator.cs
- precedingsibling.cs
- RelOps.cs
- AlternateViewCollection.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- HWStack.cs
- ManipulationDevice.cs
- Single.cs
- DataGridAutoFormat.cs
- WebDisplayNameAttribute.cs
- ActivityWithResult.cs
- DesignerEditorPartChrome.cs
- CommandDevice.cs
- LayoutUtils.cs
- CanonicalXml.cs
- URLAttribute.cs
- InterleavedZipPartStream.cs
- DBConnectionString.cs
- XmlSchemaExternal.cs
- RandomNumberGenerator.cs
- MultiView.cs
- SelectionListComponentEditor.cs
- FocusTracker.cs
- BamlRecords.cs
- SocketElement.cs
- DataGridItemEventArgs.cs
- MetadataArtifactLoaderCompositeResource.cs
- DataServiceOperationContext.cs
- ExpressionNode.cs
- ToolStripOverflow.cs
- CatalogZone.cs
- XmlAttribute.cs
- BindingOperations.cs
- CultureMapper.cs
- WindowsToolbarItemAsMenuItem.cs
- xmlfixedPageInfo.cs
- FormatException.cs
- TextServicesProperty.cs
- OracleBFile.cs
- StylusPoint.cs
- CorrelationToken.cs
- QilGenerator.cs
- AssociationSet.cs
- ExternalException.cs
- ProgressChangedEventArgs.cs
- MetadataFile.cs
- MultiView.cs
- oledbmetadatacollectionnames.cs
- PeerNameResolver.cs
- OutputWindow.cs
- sqlpipe.cs
- ToolStripContainer.cs
- ListView.cs
- Stylesheet.cs
- QueryContinueDragEvent.cs
- TrustDriver.cs
- SendingRequestEventArgs.cs
- StylusPointPropertyId.cs
- WebMessageEncodingBindingElement.cs
- BulletChrome.cs
- EntityWrapper.cs
- ContractBase.cs
- SqlConnectionStringBuilder.cs
- XmlCharType.cs
- DataBindingHandlerAttribute.cs
- StylusPointPropertyId.cs
- Options.cs
- EncryptedReference.cs
- Pool.cs
- DataSourceCache.cs
- XamlTypeMapper.cs
- StateMachine.cs
- JobStaple.cs
- RotateTransform.cs
- SqlResolver.cs
- ColumnWidthChangedEvent.cs
- Baml2006ReaderContext.cs
- followingquery.cs
- X509Certificate2.cs
- FamilyCollection.cs
- ObjectKeyFrameCollection.cs
- MachinePropertyVariants.cs
- WeakReadOnlyCollection.cs
- Frame.cs
- FileLogRecordEnumerator.cs
- DataGrid.cs
- PaginationProgressEventArgs.cs
- AdapterUtil.cs
- CachedCompositeFamily.cs