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
- ParamArrayAttribute.cs
- DashStyles.cs
- SqlExpressionNullability.cs
- StatusBar.cs
- HitTestWithGeometryDrawingContextWalker.cs
- MenuItem.cs
- DBAsyncResult.cs
- CheckBox.cs
- EntityClientCacheEntry.cs
- SplitContainer.cs
- BitmapMetadataBlob.cs
- RegexReplacement.cs
- ScrollPatternIdentifiers.cs
- XmlSecureResolver.cs
- SmiContext.cs
- GroupBox.cs
- ObjectNotFoundException.cs
- ButtonField.cs
- SqlComparer.cs
- EventLogPermissionEntryCollection.cs
- CopyOfAction.cs
- ComponentConverter.cs
- GeometryModel3D.cs
- XmlSchemaComplexType.cs
- Win32.cs
- LockCookie.cs
- AudioFormatConverter.cs
- XmlnsCompatibleWithAttribute.cs
- Reference.cs
- SafeHGlobalHandleCritical.cs
- SpanIndex.cs
- AsymmetricCryptoHandle.cs
- PowerModeChangedEventArgs.cs
- Utils.cs
- OptimizerPatterns.cs
- HyperLink.cs
- HierarchicalDataSourceControl.cs
- ProxySimple.cs
- WebReferencesBuildProvider.cs
- Int32Animation.cs
- StringStorage.cs
- ReliableMessagingVersion.cs
- DocumentReference.cs
- LinkLabel.cs
- Rights.cs
- ConnectivityStatus.cs
- SessionParameter.cs
- WebPartMinimizeVerb.cs
- SafeSecurityHandles.cs
- DataGridViewRowHeaderCell.cs
- SqlDataSourceConnectionPanel.cs
- OracleParameterCollection.cs
- SessionStateModule.cs
- FormViewCommandEventArgs.cs
- _FixedSizeReader.cs
- RemoteWebConfigurationHost.cs
- PassportPrincipal.cs
- AccessDataSource.cs
- SudsCommon.cs
- Console.cs
- List.cs
- IconConverter.cs
- CheckBox.cs
- GenerateTemporaryTargetAssembly.cs
- PackageStore.cs
- SingleKeyFrameCollection.cs
- LicFileLicenseProvider.cs
- CompiledRegexRunnerFactory.cs
- DataGridViewDataConnection.cs
- MasterPageCodeDomTreeGenerator.cs
- Color.cs
- CommandSet.cs
- RIPEMD160.cs
- LocalizeDesigner.cs
- DrawingImage.cs
- SmtpFailedRecipientsException.cs
- OleDbCommandBuilder.cs
- ApplicationInfo.cs
- errorpatternmatcher.cs
- TagMapCollection.cs
- TextTreeDeleteContentUndoUnit.cs
- ObjectAssociationEndMapping.cs
- HttpCapabilitiesSectionHandler.cs
- DataRowCollection.cs
- CacheAxisQuery.cs
- ExceptionHandler.cs
- Enumerable.cs
- ProfileSettings.cs
- ToolStripDropDownMenu.cs
- HttpCookie.cs
- UpdateException.cs
- PageFunction.cs
- FormatterConverter.cs
- Dynamic.cs
- relpropertyhelper.cs
- SessionIDManager.cs
- QuinticEase.cs
- WebPartDisplayModeEventArgs.cs
- ExpandCollapsePattern.cs
- ParseChildrenAsPropertiesAttribute.cs