Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ExtensionDataReader.cs
- PropertyGridEditorPart.cs
- SqlDataSourceFilteringEventArgs.cs
- HScrollProperties.cs
- unitconverter.cs
- GraphicsState.cs
- MappingMetadataHelper.cs
- EpmCustomContentDeSerializer.cs
- RoutedPropertyChangedEventArgs.cs
- WebPartZone.cs
- UpWmlPageAdapter.cs
- BindingExpression.cs
- ConnectionStringSettings.cs
- GridItemCollection.cs
- CornerRadiusConverter.cs
- Attributes.cs
- ProcessHost.cs
- EdmScalarPropertyAttribute.cs
- OleStrCAMarshaler.cs
- XmlBufferReader.cs
- Permission.cs
- Trigger.cs
- NullableDoubleAverageAggregationOperator.cs
- InfoCardRSACryptoProvider.cs
- ReturnEventArgs.cs
- XmlIgnoreAttribute.cs
- TouchPoint.cs
- ConditionCollection.cs
- AutoGeneratedFieldProperties.cs
- XmlTextEncoder.cs
- Debug.cs
- Viewport3DVisual.cs
- NameSpaceEvent.cs
- BrowserTree.cs
- EncodingDataItem.cs
- HtmlTableCell.cs
- oledbmetadatacollectionnames.cs
- TrackingWorkflowEventArgs.cs
- NumericPagerField.cs
- XPathAncestorIterator.cs
- ActivationServices.cs
- PageBuildProvider.cs
- BindingsCollection.cs
- MimeTypeAttribute.cs
- SecondaryIndex.cs
- ProxyWebPartManager.cs
- TrustManager.cs
- SecurityHelper.cs
- UserPersonalizationStateInfo.cs
- ContentPlaceHolder.cs
- Transform.cs
- ErrorReporting.cs
- XmlSchemaIdentityConstraint.cs
- ObjectDataSourceFilteringEventArgs.cs
- Timer.cs
- InternalBufferOverflowException.cs
- LineVisual.cs
- WebConfigurationHost.cs
- ConcurrentDictionary.cs
- QilSortKey.cs
- EventDrivenDesigner.cs
- FtpWebResponse.cs
- ComponentDispatcher.cs
- SafeRightsManagementPubHandle.cs
- RtfControls.cs
- TextServicesProperty.cs
- CfgRule.cs
- GZipStream.cs
- UpdatableGenericsFeature.cs
- ConnectorRouter.cs
- BufferBuilder.cs
- XmlDataCollection.cs
- DataGridRelationshipRow.cs
- VirtualDirectoryMappingCollection.cs
- DecimalAnimation.cs
- UnSafeCharBuffer.cs
- HtmlTableRowCollection.cs
- SortQuery.cs
- LogEntryDeserializer.cs
- HttpResponse.cs
- ReflectionUtil.cs
- BinaryObjectInfo.cs
- PackagePart.cs
- ProgressBarHighlightConverter.cs
- NamespaceCollection.cs
- HashStream.cs
- ConditionalAttribute.cs
- HtmlInputReset.cs
- PermissionSetTriple.cs
- Pointer.cs
- GeneralTransform3DGroup.cs
- MetadataPropertyvalue.cs
- WebPartTransformerAttribute.cs
- CorrelationManager.cs
- AnnouncementInnerClientCD1.cs
- XmlDocumentFragment.cs
- URLMembershipCondition.cs
- Region.cs
- DbUpdateCommandTree.cs
- RewritingSimplifier.cs