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
- Internal.cs
- UnhandledExceptionEventArgs.cs
- ButtonBase.cs
- DockAndAnchorLayout.cs
- InstanceCreationEditor.cs
- SlipBehavior.cs
- EventItfInfo.cs
- BaseDataList.cs
- SQLResource.cs
- SecurityChannelListener.cs
- DbBuffer.cs
- WebPartCatalogAddVerb.cs
- TextServicesCompartmentEventSink.cs
- ListViewUpdatedEventArgs.cs
- OutgoingWebResponseContext.cs
- SiteMapNode.cs
- ReadOnlyObservableCollection.cs
- SmtpFailedRecipientsException.cs
- AdapterSwitches.cs
- EventManager.cs
- LocalServiceSecuritySettingsElement.cs
- Parser.cs
- CachingHintValidation.cs
- MessageSmuggler.cs
- SocketAddress.cs
- BaseAsyncResult.cs
- LogManagementAsyncResult.cs
- TypeValidationEventArgs.cs
- StoreItemCollection.Loader.cs
- HttpListenerElement.cs
- DnsEndpointIdentity.cs
- DocumentSchemaValidator.cs
- ReadOnlyDataSourceView.cs
- PrintPreviewGraphics.cs
- PeerCollaboration.cs
- Message.cs
- FamilyTypefaceCollection.cs
- NetworkInformationPermission.cs
- ScalarConstant.cs
- DataGridViewCellLinkedList.cs
- X509DefaultServiceCertificateElement.cs
- ControlPaint.cs
- SafeArchiveContext.cs
- FunctionImportMapping.cs
- RecordManager.cs
- UpDownEvent.cs
- DragStartedEventArgs.cs
- ControlSerializer.cs
- ListControlActionList.cs
- DataSysAttribute.cs
- XPathNode.cs
- SelectionEditingBehavior.cs
- DisplayInformation.cs
- GraphicsPath.cs
- CompleteWizardStep.cs
- ParameterReplacerVisitor.cs
- InputProviderSite.cs
- Light.cs
- FormsAuthentication.cs
- XmlDocument.cs
- GenericAuthenticationEventArgs.cs
- HyperLink.cs
- PagesSection.cs
- XmlSchemaComplexType.cs
- BuilderPropertyEntry.cs
- CachedPathData.cs
- RegexBoyerMoore.cs
- XmlUtil.cs
- InstallerTypeAttribute.cs
- MessageDesigner.cs
- TextTrailingWordEllipsis.cs
- EventHandlers.cs
- SqlMetaData.cs
- ValueProviderWrapper.cs
- ContainerUIElement3D.cs
- HttpVersion.cs
- Calendar.cs
- tabpagecollectioneditor.cs
- ImageBrush.cs
- AnimatedTypeHelpers.cs
- HitTestParameters3D.cs
- PromptStyle.cs
- DataSourceControl.cs
- OperatingSystem.cs
- DataGridTable.cs
- Fonts.cs
- CodeArrayIndexerExpression.cs
- XmlSchemaDatatype.cs
- WorkflowInstance.cs
- SubstitutionList.cs
- InvalidDataException.cs
- TabControlAutomationPeer.cs
- ZipIOLocalFileHeader.cs
- EdmProperty.cs
- StorageEntitySetMapping.cs
- NoClickablePointException.cs
- XmlValueConverter.cs
- WSAddressing10ProblemHeaderQNameFault.cs
- XNodeNavigator.cs
- PlatformNotSupportedException.cs