Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / 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 = AtlasWeb.ResourceManager.GetString(_descriptionResourceName, AtlasWeb.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
- OpCodes.cs
- DesigntimeLicenseContextSerializer.cs
- LockCookie.cs
- StrokeSerializer.cs
- TextDecoration.cs
- EntityStoreSchemaFilterEntry.cs
- WorkflowOperationFault.cs
- StreamingContext.cs
- TextRangeEditTables.cs
- RuntimeConfig.cs
- StringSorter.cs
- ImageAttributes.cs
- OdbcConnectionHandle.cs
- FlowDocumentScrollViewer.cs
- Int16.cs
- GridViewSelectEventArgs.cs
- PieceDirectory.cs
- RuleInfoComparer.cs
- SafeFindHandle.cs
- SafeProcessHandle.cs
- FocusWithinProperty.cs
- ConstraintConverter.cs
- HelpFileFileNameEditor.cs
- DomNameTable.cs
- PolicyLevel.cs
- ImageDrawing.cs
- Lease.cs
- DBCSCodePageEncoding.cs
- BitVector32.cs
- NameValueSectionHandler.cs
- SQLGuidStorage.cs
- LoginViewDesigner.cs
- TransactionBridgeSection.cs
- CalendarModeChangedEventArgs.cs
- QueueProcessor.cs
- CounterCreationDataCollection.cs
- ContextBase.cs
- Assign.cs
- CodeThrowExceptionStatement.cs
- ChtmlPageAdapter.cs
- Keywords.cs
- StackOverflowException.cs
- Win32.cs
- ImageMetadata.cs
- QueryResult.cs
- ParameterCollectionEditorForm.cs
- ObjectSecurity.cs
- BuildResult.cs
- OutOfProcStateClientManager.cs
- ListControlBuilder.cs
- MultiBinding.cs
- AppModelKnownContentFactory.cs
- BuildProvider.cs
- CredentialCache.cs
- ExpandedWrapper.cs
- ClientScriptManager.cs
- InternalRelationshipCollection.cs
- RegexCompilationInfo.cs
- XmlDataProvider.cs
- TextBoxLine.cs
- CodeVariableDeclarationStatement.cs
- XmlSchemaObjectTable.cs
- SeekStoryboard.cs
- RequestQueue.cs
- ReadWriteObjectLock.cs
- PieceDirectory.cs
- XsltSettings.cs
- DeviceContext2.cs
- TogglePattern.cs
- SqlFormatter.cs
- BufferedReadStream.cs
- XmlNamedNodeMap.cs
- XmlNodeWriter.cs
- ValueSerializer.cs
- AuthenticationManager.cs
- CommandBindingCollection.cs
- ProxyWebPart.cs
- ClientRuntimeConfig.cs
- NativeDirectoryServicesQueryAPIs.cs
- SafeProcessHandle.cs
- ButtonStandardAdapter.cs
- DataGridViewAccessibleObject.cs
- NameValueCollection.cs
- TypeConvertions.cs
- Cursor.cs
- BitmapEffectInput.cs
- VScrollProperties.cs
- Formatter.cs
- InkCanvasSelection.cs
- SqlFunctions.cs
- DbParameterCollection.cs
- GlyphingCache.cs
- WindowsSolidBrush.cs
- UpdatableGenericsFeature.cs
- Resources.Designer.cs
- ProfessionalColorTable.cs
- DockPattern.cs
- Keywords.cs
- TransactionInterop.cs
- DelegateCompletionCallbackWrapper.cs