Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / DynamicData / UI / ResourceDescriptionAttribute.cs / 1305376 / ResourceDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Event, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDescriptionAttribute : DescriptionAttribute { private bool _resourceLoaded; private readonly string _descriptionResourceName; public ResourceDescriptionAttribute(string descriptionResourceName) { _descriptionResourceName = descriptionResourceName; } public override string Description { get { if (!_resourceLoaded) { _resourceLoaded = true; DescriptionValue = DynamicDataResources.ResourceManager.GetString(_descriptionResourceName, DynamicDataResources.Culture); } return base.Description; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PopOutPanel.cs
- _NestedSingleAsyncResult.cs
- OrderPreservingSpoolingTask.cs
- PropertyOrder.cs
- ReflectionServiceProvider.cs
- PublisherMembershipCondition.cs
- SchemaDeclBase.cs
- CheckableControlBaseAdapter.cs
- CustomLineCap.cs
- ProtocolsConfigurationHandler.cs
- ClientRolePrincipal.cs
- ResourceDescriptionAttribute.cs
- EdmSchemaAttribute.cs
- QueryCacheKey.cs
- Substitution.cs
- PropertyDescriptor.cs
- Number.cs
- _PooledStream.cs
- CompositionDesigner.cs
- Transform.cs
- CorrelationTokenInvalidatedHandler.cs
- HyperLinkDataBindingHandler.cs
- MbpInfo.cs
- ScalarType.cs
- AssemblyInfo.cs
- PopupRootAutomationPeer.cs
- MsmqInputChannelBase.cs
- TabControlCancelEvent.cs
- DbFunctionCommandTree.cs
- TableItemProviderWrapper.cs
- SHA256Managed.cs
- SettingsProviderCollection.cs
- WmiInstallComponent.cs
- ProxyWebPart.cs
- LinkLabel.cs
- SafeNativeMethodsCLR.cs
- WorkflowClientDeliverMessageWrapper.cs
- ProxyWebPart.cs
- DocumentPageViewAutomationPeer.cs
- XmlTextReaderImpl.cs
- TextPenaltyModule.cs
- CalendarDay.cs
- ChameleonKey.cs
- MobilePage.cs
- PageAdapter.cs
- NamespaceList.cs
- MimeTypePropertyAttribute.cs
- NavigationFailedEventArgs.cs
- FlowLayoutPanelDesigner.cs
- PixelShader.cs
- XmlSchemaObjectCollection.cs
- WebContext.cs
- FontInfo.cs
- StandardToolWindows.cs
- CollectionViewGroup.cs
- ValidationResult.cs
- SharedDp.cs
- MembershipUser.cs
- BitmapCacheBrush.cs
- EntityUtil.cs
- ConfigErrorGlyph.cs
- CompModSwitches.cs
- HtmlElement.cs
- Rule.cs
- PageAsyncTaskManager.cs
- _WinHttpWebProxyDataBuilder.cs
- ByteAnimation.cs
- Rect3DValueSerializer.cs
- DelayedRegex.cs
- TextBlockAutomationPeer.cs
- ReadOnlyDataSource.cs
- TrackBar.cs
- CodeAccessSecurityEngine.cs
- WmlTextViewAdapter.cs
- ObjectStateManagerMetadata.cs
- KnownBoxes.cs
- GenericTextProperties.cs
- IsolationInterop.cs
- FunctionUpdateCommand.cs
- MetaDataInfo.cs
- XmlSchemaAttributeGroup.cs
- SessionStateItemCollection.cs
- Ray3DHitTestResult.cs
- EntityKeyElement.cs
- ValueExpressions.cs
- ScrollChrome.cs
- WebServiceEnumData.cs
- UnsafeNativeMethods.cs
- ApplicationSettingsBase.cs
- RecognizeCompletedEventArgs.cs
- FormViewDeletedEventArgs.cs
- SyncOperationState.cs
- PathBox.cs
- ResolveMatchesMessageCD1.cs
- QueryExecutionOption.cs
- AnnotationResourceChangedEventArgs.cs
- Pen.cs
- SQlBooleanStorage.cs
- GroupStyle.cs
- TraversalRequest.cs