Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- CompilerCollection.cs
- WebMessageFormatHelper.cs
- ErrorStyle.cs
- FileDialogCustomPlace.cs
- CaretElement.cs
- RtfToken.cs
- StateItem.cs
- ReliabilityContractAttribute.cs
- SettingsPropertyCollection.cs
- XPathNodePointer.cs
- VirtualPathProvider.cs
- OciHandle.cs
- IgnorePropertiesAttribute.cs
- BasePattern.cs
- Trace.cs
- SelectionGlyphBase.cs
- log.cs
- PixelFormat.cs
- RouteParametersHelper.cs
- MethodToken.cs
- TextEditorTables.cs
- MenuItemStyleCollection.cs
- ToolStripSplitButton.cs
- ModuleBuilderData.cs
- Action.cs
- SchemaTypeEmitter.cs
- BounceEase.cs
- StyleReferenceConverter.cs
- ContextQuery.cs
- XmlTextReaderImpl.cs
- NullNotAllowedCollection.cs
- BaseEntityWrapper.cs
- Quad.cs
- HtmlUtf8RawTextWriter.cs
- DispatcherFrame.cs
- ExtractorMetadata.cs
- XmlSchemaExporter.cs
- Tokenizer.cs
- WebServiceFault.cs
- WindowsContainer.cs
- Touch.cs
- DoWorkEventArgs.cs
- DNS.cs
- LinqDataSourceView.cs
- UnsafeCollabNativeMethods.cs
- KnownBoxes.cs
- PropertyTabAttribute.cs
- AspNetPartialTrustHelpers.cs
- XmlDocumentFragment.cs
- ThemeInfoAttribute.cs
- MemberPath.cs
- Simplifier.cs
- TextElementEnumerator.cs
- AQNBuilder.cs
- ActivityTypeResolver.xaml.cs
- StringWriter.cs
- StartUpEventArgs.cs
- XmlWrappingWriter.cs
- SocketAddress.cs
- XsdDuration.cs
- HttpDateParse.cs
- TabletCollection.cs
- AccessDataSourceView.cs
- FlowDocumentFormatter.cs
- SqlCommandSet.cs
- ScriptHandlerFactory.cs
- unsafeIndexingFilterStream.cs
- OpenTypeMethods.cs
- RadioButtonList.cs
- DesignerSelectionListAdapter.cs
- Assert.cs
- SerializationObjectManager.cs
- HttpCapabilitiesBase.cs
- mactripleDES.cs
- PropertyInformationCollection.cs
- BatchStream.cs
- XmlDocumentFieldSchema.cs
- DownloadProgressEventArgs.cs
- InvalidateEvent.cs
- WinFormsSecurity.cs
- ObjectRef.cs
- RectangleF.cs
- XmlDataSourceNodeDescriptor.cs
- _OSSOCK.cs
- EntityReference.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- XmlValueConverter.cs
- SynthesizerStateChangedEventArgs.cs
- ClientProxyGenerator.cs
- BaseValidatorDesigner.cs
- UseLicense.cs
- ToolStripOverflowButton.cs
- DelimitedListTraceListener.cs
- BufferModeSettings.cs
- DrawingServices.cs
- PanelStyle.cs
- OdbcConnectionStringbuilder.cs
- HandledMouseEvent.cs
- SimpleRecyclingCache.cs
- DataGridDetailsPresenter.cs