Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / ResourceKey.cs / 1 / 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
- Tag.cs
- OdbcError.cs
- DragStartedEventArgs.cs
- FixedSOMPageConstructor.cs
- InstanceDataCollectionCollection.cs
- ConfigXmlSignificantWhitespace.cs
- DbConnectionStringCommon.cs
- ComponentResourceKeyConverter.cs
- SqlClientMetaDataCollectionNames.cs
- SurrogateSelector.cs
- SslStream.cs
- DataGridColumnHeadersPresenter.cs
- CounterCreationDataCollection.cs
- HashLookup.cs
- TextServicesCompartment.cs
- PropertyEntry.cs
- VariableQuery.cs
- MexServiceChannelBuilder.cs
- Point4DValueSerializer.cs
- ExtensibleClassFactory.cs
- MethodRental.cs
- CustomGrammar.cs
- Inline.cs
- EncoderReplacementFallback.cs
- WebPartUserCapability.cs
- AuthStoreRoleProvider.cs
- Evaluator.cs
- X509Certificate2Collection.cs
- ProviderUtil.cs
- RootDesignerSerializerAttribute.cs
- ContentValidator.cs
- ValidationRuleCollection.cs
- SafePEFileHandle.cs
- SqlParameterCollection.cs
- InputLangChangeEvent.cs
- AlphabetConverter.cs
- DummyDataSource.cs
- ExceptionUtil.cs
- RegexWorker.cs
- FrameworkElementFactoryMarkupObject.cs
- HttpModulesSection.cs
- ProcessRequestAsyncResult.cs
- SystemException.cs
- SmtpTransport.cs
- DataSourceHelper.cs
- CollectionsUtil.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ColumnCollection.cs
- ConfigXmlWhitespace.cs
- _LocalDataStore.cs
- PageAsyncTask.cs
- DataGridViewCellLinkedList.cs
- ISO2022Encoding.cs
- WebUtil.cs
- SourceChangedEventArgs.cs
- JsonQNameDataContract.cs
- _BufferOffsetSize.cs
- MyContact.cs
- DataViewManagerListItemTypeDescriptor.cs
- XmlWrappingWriter.cs
- documentsequencetextcontainer.cs
- DateTimeParse.cs
- DataBinder.cs
- NotificationContext.cs
- UpdatePanel.cs
- Cursor.cs
- DisposableCollectionWrapper.cs
- DetailsViewUpdatedEventArgs.cs
- MouseCaptureWithinProperty.cs
- WSFederationHttpSecurity.cs
- ObservableCollection.cs
- FrugalList.cs
- Path.cs
- ScheduleChanges.cs
- IFormattable.cs
- EndpointAddress.cs
- AssemblyLoader.cs
- TextReader.cs
- DbSource.cs
- CodeNamespaceImport.cs
- _ShellExpression.cs
- TransactionScopeDesigner.cs
- IgnoreFlushAndCloseStream.cs
- InvokeWebServiceDesigner.cs
- SelectionUIHandler.cs
- X509Logo.cs
- HttpApplication.cs
- WebPartHeaderCloseVerb.cs
- SqlDataAdapter.cs
- HScrollProperties.cs
- DesignerRegionMouseEventArgs.cs
- serverconfig.cs
- Repeater.cs
- ScriptBehaviorDescriptor.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DbParameterCollectionHelper.cs
- ColorAnimationBase.cs
- _LocalDataStoreMgr.cs
- GestureRecognitionResult.cs
- MediaTimeline.cs