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
- ExpressionBindings.cs
- SingleObjectCollection.cs
- Message.cs
- DesignerActionTextItem.cs
- Light.cs
- QueryConverter.cs
- DesignerTextViewAdapter.cs
- TouchDevice.cs
- COM2ColorConverter.cs
- TypeContext.cs
- FixedBufferAttribute.cs
- LinqDataSourceContextEventArgs.cs
- SafeNativeMethods.cs
- ConfigurationManagerHelper.cs
- CalloutQueueItem.cs
- ObjectListField.cs
- DesignerOptions.cs
- BuilderPropertyEntry.cs
- WorkflowApplicationCompletedException.cs
- TransformerInfoCollection.cs
- ControlType.cs
- Point4D.cs
- XamlPoint3DCollectionSerializer.cs
- TreeViewCancelEvent.cs
- StringStorage.cs
- Scene3D.cs
- FixedSOMPageConstructor.cs
- DocumentXPathNavigator.cs
- TraceFilter.cs
- SkinBuilder.cs
- DbConvert.cs
- SafeRightsManagementPubHandle.cs
- CultureSpecificCharacterBufferRange.cs
- StreamAsIStream.cs
- IApplicationTrustManager.cs
- _SslSessionsCache.cs
- SerializationEventsCache.cs
- AnimationStorage.cs
- AppSecurityManager.cs
- ListControl.cs
- SectionInformation.cs
- Stylus.cs
- ServiceAuthorizationManager.cs
- WebPartCollection.cs
- WizardPanelChangingEventArgs.cs
- QueryCacheManager.cs
- DrawToolTipEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- InputLanguageManager.cs
- SynchronizationContext.cs
- MoveSizeWinEventHandler.cs
- HMACSHA384.cs
- ByteStorage.cs
- RelationalExpressions.cs
- SimpleFieldTemplateUserControl.cs
- RequestQueryParser.cs
- SystemTcpStatistics.cs
- BitStack.cs
- StructuredTypeInfo.cs
- DbConnectionPoolOptions.cs
- StubHelpers.cs
- PolicyException.cs
- UIntPtr.cs
- IndentedWriter.cs
- IndentedWriter.cs
- SynchronizedInputAdaptor.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- CryptographicAttribute.cs
- PeekCompletedEventArgs.cs
- Hash.cs
- PingOptions.cs
- SchemaTypeEmitter.cs
- WebBaseEventKeyComparer.cs
- BrowserTree.cs
- CodeDelegateCreateExpression.cs
- DockPattern.cs
- FormsAuthentication.cs
- DictionaryTraceRecord.cs
- MsmqTransportSecurity.cs
- WindowsEditBoxRange.cs
- XmlArrayAttribute.cs
- TagMapCollection.cs
- PointCollection.cs
- RowToFieldTransformer.cs
- IdentitySection.cs
- login.cs
- XmlAttributeCollection.cs
- DaylightTime.cs
- StringArrayConverter.cs
- MultiView.cs
- StaticFileHandler.cs
- MailSettingsSection.cs
- DataTableReaderListener.cs
- NumericPagerField.cs
- CharAnimationBase.cs
- HostedAspNetEnvironment.cs
- GenerateHelper.cs
- ParameterBinding.cs
- parserscommon.cs
- ObjectHandle.cs