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
- AssemblyBuilder.cs
- XmlBufferReader.cs
- WebScriptMetadataFormatter.cs
- FixedDocument.cs
- PackagePart.cs
- UnaryOperationBinder.cs
- CapabilitiesState.cs
- EnvelopedSignatureTransform.cs
- DayRenderEvent.cs
- BamlRecords.cs
- TextMarkerSource.cs
- DataRelationCollection.cs
- TargetPerspective.cs
- InlineCollection.cs
- DataGridSortCommandEventArgs.cs
- WindowProviderWrapper.cs
- GeometryModel3D.cs
- Vector3DAnimationBase.cs
- ServiceObjectContainer.cs
- XamlWrappingReader.cs
- LabelLiteral.cs
- _HelperAsyncResults.cs
- ImageFormatConverter.cs
- IndexerNameAttribute.cs
- CustomBinding.cs
- DataServiceHostWrapper.cs
- AsyncResult.cs
- SiteMapDesignerDataSourceView.cs
- ConcurrentQueue.cs
- HtmlControl.cs
- FullTextLine.cs
- FlowLayoutPanel.cs
- DBSqlParserColumnCollection.cs
- ItemCheckEvent.cs
- BridgeDataReader.cs
- SHA1Cng.cs
- FontFamily.cs
- Fonts.cs
- ApplicationFileCodeDomTreeGenerator.cs
- XsdDateTime.cs
- BookmarkList.cs
- ServiceDocument.cs
- ScrollPattern.cs
- DataListItemEventArgs.cs
- ColorMatrix.cs
- DataGridBoolColumn.cs
- XmlReturnWriter.cs
- IdnMapping.cs
- SweepDirectionValidation.cs
- KerberosSecurityTokenAuthenticator.cs
- ToolStripDropDownMenu.cs
- ApplicationGesture.cs
- FixedSOMLineCollection.cs
- UserNamePasswordClientCredential.cs
- DragEventArgs.cs
- InitializerFacet.cs
- FreezableCollection.cs
- ping.cs
- Point3DConverter.cs
- BamlResourceDeserializer.cs
- SHA512.cs
- CompilationLock.cs
- KnownColorTable.cs
- MSHTMLHostUtil.cs
- AuthenticationSection.cs
- BufferModesCollection.cs
- EventlogProvider.cs
- XpsDocumentEvent.cs
- SqlRetyper.cs
- ImageFormatConverter.cs
- AddingNewEventArgs.cs
- ExceptionList.cs
- LineSegment.cs
- DeferredReference.cs
- ADConnectionHelper.cs
- DataControlFieldHeaderCell.cs
- CheckBoxList.cs
- SerialReceived.cs
- InternalDispatchObject.cs
- ByeMessageCD1.cs
- XmlWrappingReader.cs
- FormatException.cs
- XMLDiffLoader.cs
- MarkupExtensionSerializer.cs
- IgnoreFileBuildProvider.cs
- DataListCommandEventArgs.cs
- RoutedCommand.cs
- MultipleViewPatternIdentifiers.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- SelectionProcessor.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TableLayoutPanelCellPosition.cs
- _CookieModule.cs
- WebPartsSection.cs
- HasCopySemanticsAttribute.cs
- ButtonChrome.cs
- WorkflowEventArgs.cs
- StylusButtonEventArgs.cs
- KeyPressEvent.cs
- TableLayoutSettingsTypeConverter.cs