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
- UnsafeNativeMethods.cs
- XmlText.cs
- SqlComparer.cs
- Underline.cs
- ElementProxy.cs
- ExtractedStateEntry.cs
- SingleAnimationUsingKeyFrames.cs
- rsa.cs
- SmtpReplyReaderFactory.cs
- TimeStampChecker.cs
- FileNameEditor.cs
- SqlTypeSystemProvider.cs
- HostedImpersonationContext.cs
- XmlCharacterData.cs
- XmlNotation.cs
- PropertyMetadata.cs
- EntityTypeEmitter.cs
- CurrentChangingEventManager.cs
- Point3DAnimationBase.cs
- GiveFeedbackEvent.cs
- Registry.cs
- ApplicationSecurityInfo.cs
- ImageAnimator.cs
- EventMetadata.cs
- TargetException.cs
- DeadCharTextComposition.cs
- CategoryAttribute.cs
- QilChoice.cs
- TextMetrics.cs
- DataBoundControl.cs
- ApplicationSettingsBase.cs
- ConfigurationElementProperty.cs
- ReadOnlyNameValueCollection.cs
- SpellerInterop.cs
- TypeInfo.cs
- ObjectManager.cs
- ISessionStateStore.cs
- TextServicesDisplayAttribute.cs
- BamlMapTable.cs
- ServiceDurableInstance.cs
- Opcode.cs
- HtmlGenericControl.cs
- AsyncOperationContext.cs
- DataGridTemplateColumn.cs
- HTTPNotFoundHandler.cs
- ResourcesChangeInfo.cs
- ETagAttribute.cs
- TextPointer.cs
- EntityDataSourceReferenceGroup.cs
- ISO2022Encoding.cs
- XNodeSchemaApplier.cs
- WebControlToolBoxItem.cs
- TreeViewCancelEvent.cs
- DrawingGroup.cs
- WebEventTraceProvider.cs
- HyperLinkColumn.cs
- KeySplineConverter.cs
- LoadWorkflowCommand.cs
- StdValidatorsAndConverters.cs
- OnOperation.cs
- RuleAction.cs
- FormViewDeleteEventArgs.cs
- IntegerValidatorAttribute.cs
- WebPartTransformerCollection.cs
- RuntimeHandles.cs
- XhtmlTextWriter.cs
- DescendentsWalker.cs
- NumberFormatter.cs
- EndpointReference.cs
- TextTreeDeleteContentUndoUnit.cs
- Lease.cs
- DocumentSchemaValidator.cs
- OdbcDataReader.cs
- ColorDialog.cs
- HelpProvider.cs
- DmlSqlGenerator.cs
- CommandLineParser.cs
- TextInfo.cs
- DataColumnMappingCollection.cs
- TraceHwndHost.cs
- DataGridCellItemAutomationPeer.cs
- TextParagraphCache.cs
- DataGridViewLinkColumn.cs
- BindableAttribute.cs
- TrackingRecord.cs
- BrowsableAttribute.cs
- PropertyExpression.cs
- LogicalTreeHelper.cs
- ConnectionProviderAttribute.cs
- EncoderBestFitFallback.cs
- Attributes.cs
- TdsEnums.cs
- SignatureHelper.cs
- Focus.cs
- ToolStripItemImageRenderEventArgs.cs
- SEHException.cs
- DataStreams.cs
- AssemblyHash.cs
- Convert.cs
- StringSource.cs