Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / 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.WebControls { [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.WebControlsRes.GetString(_descriptionResourceName); } return base.Description; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Reflection; namespace System.Web.UI.WebControls { [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.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
- BulletedList.cs
- ContextMenuStrip.cs
- DataGridCellItemAutomationPeer.cs
- basevalidator.cs
- MappingModelBuildProvider.cs
- CounterSampleCalculator.cs
- Vector3DAnimationBase.cs
- TextServicesHost.cs
- Thickness.cs
- InvalidDataException.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- LabelLiteral.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- SmtpFailedRecipientException.cs
- XmlHelper.cs
- Bezier.cs
- validation.cs
- Int32CollectionConverter.cs
- OleDbTransaction.cs
- NaturalLanguageHyphenator.cs
- ComPlusTypeLoader.cs
- Executor.cs
- ZipIOLocalFileDataDescriptor.cs
- ArraySortHelper.cs
- IisTraceListener.cs
- TiffBitmapDecoder.cs
- ReadOnlyCollectionBase.cs
- TableAutomationPeer.cs
- _ScatterGatherBuffers.cs
- formatter.cs
- ObjectRef.cs
- XmlDocument.cs
- Control.cs
- FacetChecker.cs
- ReadOnlyDictionary.cs
- DataSourceCacheDurationConverter.cs
- DataGridAddNewRow.cs
- ViewStateModeByIdAttribute.cs
- FileSystemWatcher.cs
- WebContext.cs
- PassportAuthentication.cs
- Path.cs
- ErrorFormatter.cs
- DocComment.cs
- ListBoxItemAutomationPeer.cs
- TabPage.cs
- FormsIdentity.cs
- LinqExpressionNormalizer.cs
- LookupTables.cs
- XPathDocument.cs
- FastEncoder.cs
- AnonymousIdentificationModule.cs
- SystemGatewayIPAddressInformation.cs
- CacheSection.cs
- SettingsPropertyNotFoundException.cs
- Helpers.cs
- WindowsPen.cs
- COAUTHIDENTITY.cs
- TextEndOfParagraph.cs
- FontFaceLayoutInfo.cs
- CollectionViewSource.cs
- PageCatalogPartDesigner.cs
- Timeline.cs
- OdbcParameterCollection.cs
- BinarySerializer.cs
- EditingCommands.cs
- Vector3DCollection.cs
- FontNameEditor.cs
- ValidationResult.cs
- SmiRequestExecutor.cs
- RenderData.cs
- DetailsViewCommandEventArgs.cs
- GAC.cs
- GenericArgumentsUpdater.cs
- PathFigure.cs
- RepeaterItemEventArgs.cs
- TrackBarRenderer.cs
- PinnedBufferMemoryStream.cs
- LoadRetryHandler.cs
- ChannelManagerBase.cs
- XamlInt32CollectionSerializer.cs
- ToolBar.cs
- GridViewRowEventArgs.cs
- CodeLabeledStatement.cs
- UxThemeWrapper.cs
- ReadonlyMessageFilter.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CustomWebEventKey.cs
- ContainerParaClient.cs
- TextFormatterImp.cs
- Models.cs
- RequestCacheValidator.cs
- _LazyAsyncResult.cs
- XmlResolver.cs
- NamedElement.cs
- DesignerActionMethodItem.cs
- TimelineClockCollection.cs
- Stylesheet.cs
- FunctionNode.cs
- Double.cs