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
- ParameterExpression.cs
- SafeNativeMethodsMilCoreApi.cs
- GACMembershipCondition.cs
- ExpressionPrefixAttribute.cs
- tooltip.cs
- Vector3D.cs
- AmbientLight.cs
- WriteFileContext.cs
- UrlMappingCollection.cs
- ConfigXmlElement.cs
- LinkButton.cs
- ExpandableObjectConverter.cs
- DataGridTable.cs
- SchemaDeclBase.cs
- EncryptedPackageFilter.cs
- BCLDebug.cs
- MediaPlayerState.cs
- ISCIIEncoding.cs
- MoveSizeWinEventHandler.cs
- ValuePattern.cs
- MenuItemBindingCollection.cs
- Random.cs
- SortableBindingList.cs
- DataViewSettingCollection.cs
- TrackingDataItem.cs
- TreeViewEvent.cs
- Pair.cs
- ObjectQueryProvider.cs
- ProfileService.cs
- SystemKeyConverter.cs
- XmlHelper.cs
- OperationGenerator.cs
- PropertyTabAttribute.cs
- DependencyStoreSurrogate.cs
- FileInfo.cs
- IncrementalCompileAnalyzer.cs
- ToolboxComponentsCreatingEventArgs.cs
- AssociationTypeEmitter.cs
- ProcessHostFactoryHelper.cs
- TableRow.cs
- DecimalConstantAttribute.cs
- dtdvalidator.cs
- List.cs
- _LocalDataStoreMgr.cs
- AdditionalEntityFunctions.cs
- Tuple.cs
- TreeNode.cs
- ReferenceAssemblyAttribute.cs
- FaultImportOptions.cs
- StopStoryboard.cs
- PersistenceTypeAttribute.cs
- MimeBasePart.cs
- COM2PropertyPageUITypeConverter.cs
- Events.cs
- OutputCacheProfile.cs
- srgsitem.cs
- ServiceThrottlingBehavior.cs
- ProcessHostFactoryHelper.cs
- DefaultMemberAttribute.cs
- Icon.cs
- Policy.cs
- AspProxy.cs
- NotificationContext.cs
- HttpConfigurationContext.cs
- DataDocumentXPathNavigator.cs
- FeatureSupport.cs
- Panel.cs
- TemplateBindingExpression.cs
- EventMappingSettings.cs
- WriteTimeStream.cs
- MobileResource.cs
- ToolStripDropDown.cs
- ClockController.cs
- ControlTemplate.cs
- RequestCacheManager.cs
- TextBreakpoint.cs
- EventHandlersStore.cs
- SecurityResources.cs
- ManagementClass.cs
- StrongNameHelpers.cs
- PointLight.cs
- RemoveStoryboard.cs
- BuildDependencySet.cs
- WebConfigurationManager.cs
- InvalidOperationException.cs
- HttpHandlersSection.cs
- FullTextBreakpoint.cs
- StrokeCollectionDefaultValueFactory.cs
- DataGridViewTopRowAccessibleObject.cs
- SelectorItemAutomationPeer.cs
- ExpressionLink.cs
- OleDbDataReader.cs
- RecordsAffectedEventArgs.cs
- GestureRecognitionResult.cs
- HttpCapabilitiesBase.cs
- _KerberosClient.cs
- TextDecoration.cs
- RadialGradientBrush.cs
- SystemInfo.cs
- MeshGeometry3D.cs