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
- StringUtil.cs
- RepeaterCommandEventArgs.cs
- AttachedPropertyInfo.cs
- ExternalException.cs
- SQLInt16Storage.cs
- RepeatBehavior.cs
- Byte.cs
- WebReferencesBuildProvider.cs
- DockProviderWrapper.cs
- BookmarkUndoUnit.cs
- Journaling.cs
- Restrictions.cs
- Rectangle.cs
- Win32MouseDevice.cs
- XmlILConstructAnalyzer.cs
- ThreadBehavior.cs
- BufferBuilder.cs
- HtmlTitle.cs
- PrintDialog.cs
- XPathConvert.cs
- IgnoreFileBuildProvider.cs
- UIElement3D.cs
- SrgsText.cs
- AncestorChangedEventArgs.cs
- TerminateWorkflow.cs
- _HeaderInfoTable.cs
- RuleRef.cs
- PathData.cs
- SignatureHelper.cs
- ValidationPropertyAttribute.cs
- CheckPair.cs
- XmlDocument.cs
- WmfPlaceableFileHeader.cs
- DPCustomTypeDescriptor.cs
- UnsafeNativeMethods.cs
- VirtualDirectoryMapping.cs
- HierarchicalDataSourceControl.cs
- DataGridViewDataConnection.cs
- PropertyManager.cs
- XmlEventCache.cs
- CheckBoxField.cs
- TextSearch.cs
- MinMaxParagraphWidth.cs
- TextFormatterImp.cs
- DataGridItem.cs
- VisualState.cs
- RadioButtonList.cs
- UnitySerializationHolder.cs
- AutomationProperty.cs
- PointConverter.cs
- FrameworkElementFactoryMarkupObject.cs
- SendingRequestEventArgs.cs
- GradientBrush.cs
- SecurityContextKeyIdentifierClause.cs
- SecurityElement.cs
- OutputCacheSettings.cs
- DictionaryCustomTypeDescriptor.cs
- SchemaComplexType.cs
- DocumentGridPage.cs
- ConstructorBuilder.cs
- ArgumentsParser.cs
- MasterPageCodeDomTreeGenerator.cs
- RuleSetBrowserDialog.cs
- XPathDocumentBuilder.cs
- DrawingCollection.cs
- GlyphsSerializer.cs
- _AuthenticationState.cs
- DataServiceRequest.cs
- ObservableCollectionDefaultValueFactory.cs
- UpdateExpressionVisitor.cs
- PropertyEmitter.cs
- Animatable.cs
- ScriptControlDescriptor.cs
- TableCell.cs
- SQLDateTime.cs
- TraceContextEventArgs.cs
- CustomWebEventKey.cs
- TraceContextEventArgs.cs
- MediaPlayer.cs
- ServiceHttpModule.cs
- Set.cs
- GroupDescription.cs
- SerTrace.cs
- InfoCardKeyedHashAlgorithm.cs
- OleDbRowUpdatedEvent.cs
- __Filters.cs
- DataColumn.cs
- Selector.cs
- CodeMemberEvent.cs
- dsa.cs
- BindingExpressionUncommonField.cs
- NullReferenceException.cs
- TcpClientChannel.cs
- ContainerParaClient.cs
- KeyInfo.cs
- BitVec.cs
- RegistryDataKey.cs
- ConstraintCollection.cs
- BrowserCapabilitiesCompiler.cs
- AutomationEvent.cs