Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / ResourceDescriptionAttribute.cs / 1305376 / ResourceDescriptionAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; namespace System.Web.UI.Design.WebControls.Util { [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 = System.Web.UI.Design.WebControlsRes.GetString(_descriptionResourceName); } 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
- SmiMetaDataProperty.cs
- LayoutEvent.cs
- SoapCommonClasses.cs
- UrlPropertyAttribute.cs
- ProtectedConfigurationSection.cs
- WebBrowserDocumentCompletedEventHandler.cs
- cookiecollection.cs
- MDIControlStrip.cs
- DbProviderSpecificTypePropertyAttribute.cs
- TraceUtility.cs
- coordinatorscratchpad.cs
- ApplicationTrust.cs
- CompositeScriptReference.cs
- SystemColors.cs
- PagesSection.cs
- Light.cs
- OleDbSchemaGuid.cs
- RefreshEventArgs.cs
- EmptyControlCollection.cs
- ValidatedMobileControlConverter.cs
- TypeConverterHelper.cs
- DataGridViewBand.cs
- TextParagraph.cs
- FileRegion.cs
- Bidi.cs
- SmtpException.cs
- HealthMonitoringSectionHelper.cs
- TypeGeneratedEventArgs.cs
- Number.cs
- XmlSchemaComplexType.cs
- KeyedHashAlgorithm.cs
- InkPresenterAutomationPeer.cs
- PolyLineSegmentFigureLogic.cs
- TrustSection.cs
- FormatControl.cs
- NavigationPropertyEmitter.cs
- CharAnimationUsingKeyFrames.cs
- JoinSymbol.cs
- WmlValidationSummaryAdapter.cs
- BitmapVisualManager.cs
- TypeConverterAttribute.cs
- WriteFileContext.cs
- SoapHeader.cs
- TextWriterEngine.cs
- InitializationEventAttribute.cs
- DataGridViewHeaderCell.cs
- RuntimeArgumentHandle.cs
- JsonClassDataContract.cs
- Resources.Designer.cs
- MulticastNotSupportedException.cs
- ExpressionLink.cs
- EntityDataSourceQueryBuilder.cs
- WebPartDisplayModeCancelEventArgs.cs
- smtpconnection.cs
- RequestTimeoutManager.cs
- SequenceDesigner.cs
- XmlSchemaValidator.cs
- AssemblyNameProxy.cs
- StrokeNodeData.cs
- ValidationRuleCollection.cs
- Point.cs
- EmissiveMaterial.cs
- MappingException.cs
- XmlValidatingReader.cs
- DataGridViewTopRowAccessibleObject.cs
- GroupItemAutomationPeer.cs
- MenuCommand.cs
- OverrideMode.cs
- PropertyGridEditorPart.cs
- WebPartVerbCollection.cs
- RuleProcessor.cs
- ToolStripRenderer.cs
- Binding.cs
- LastQueryOperator.cs
- ToolboxItemFilterAttribute.cs
- Overlapped.cs
- BypassElementCollection.cs
- PhoneCallDesigner.cs
- ScriptRef.cs
- Helper.cs
- StyleXamlParser.cs
- EntityDataSourceSelectedEventArgs.cs
- PrimaryKeyTypeConverter.cs
- RotateTransform.cs
- PathFigureCollectionConverter.cs
- LineGeometry.cs
- GroupStyle.cs
- Encoder.cs
- Point3DConverter.cs
- bindurihelper.cs
- DrawingContextWalker.cs
- ToolZone.cs
- ImageAnimator.cs
- TextTreeRootNode.cs
- IdentityManager.cs
- SocketException.cs
- CodeIndexerExpression.cs
- ScriptManager.cs
- CacheSection.cs
- OleDbEnumerator.cs