Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDescriptionAttribute.cs / 1 / 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
- documentation.cs
- DrawingState.cs
- WindowsNonControl.cs
- ClientUrlResolverWrapper.cs
- PolicyLevel.cs
- AtomContentProperty.cs
- PropertyCollection.cs
- FormViewRow.cs
- FixedSOMElement.cs
- MissingManifestResourceException.cs
- ValidationErrorInfo.cs
- xml.cs
- WindowsPen.cs
- BitmapCodecInfo.cs
- PassportAuthenticationModule.cs
- CharacterBuffer.cs
- CapabilitiesState.cs
- ResolveMatchesApril2005.cs
- HttpRequestBase.cs
- ExtendedPropertyCollection.cs
- XPathNavigatorReader.cs
- HttpServerVarsCollection.cs
- SelfIssuedAuthRSACryptoProvider.cs
- DataGridHeaderBorder.cs
- StopStoryboard.cs
- DateTimeUtil.cs
- CombinedHttpChannel.cs
- BaseCodeDomTreeGenerator.cs
- Rect3D.cs
- DataGridViewRowsAddedEventArgs.cs
- BrowserDefinition.cs
- infer.cs
- WindowsGraphicsWrapper.cs
- RealizationContext.cs
- WsdlContractConversionContext.cs
- XmlQualifiedName.cs
- BasicHttpSecurityMode.cs
- EncoderParameter.cs
- ProtectedUri.cs
- PointCollection.cs
- CompilationUnit.cs
- InvokeGenerator.cs
- path.cs
- WebServiceEnumData.cs
- PathSegmentCollection.cs
- WmlValidationSummaryAdapter.cs
- ConfigWriter.cs
- TreeBuilderBamlTranslator.cs
- SlipBehavior.cs
- NameValueConfigurationElement.cs
- ZipIOCentralDirectoryFileHeader.cs
- ToolStripCodeDomSerializer.cs
- IndentedWriter.cs
- StorageAssociationSetMapping.cs
- XPathBuilder.cs
- ToolboxItem.cs
- LinqToSqlWrapper.cs
- Speller.cs
- SqlServices.cs
- Axis.cs
- FlowchartDesigner.Helpers.cs
- FixedSOMPageConstructor.cs
- FixedTextPointer.cs
- PersonalizablePropertyEntry.cs
- ContextBase.cs
- FixedTextSelectionProcessor.cs
- UdpDiscoveryMessageFilter.cs
- DictionarySurrogate.cs
- JsonReader.cs
- DetailsViewCommandEventArgs.cs
- WindowAutomationPeer.cs
- CodeAssignStatement.cs
- XmlTextReader.cs
- EraserBehavior.cs
- SQLMembershipProvider.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SamlAuthorizationDecisionStatement.cs
- TableRowCollection.cs
- EndpointAddress.cs
- translator.cs
- TypeValidationEventArgs.cs
- Emitter.cs
- Memoizer.cs
- SamlAction.cs
- GeneralTransform.cs
- GeneralTransformGroup.cs
- AccessDataSourceWizardForm.cs
- HtmlTableRow.cs
- CommandLibraryHelper.cs
- DelegatingConfigHost.cs
- ContentPlaceHolder.cs
- FreezableDefaultValueFactory.cs
- DragEvent.cs
- MappingItemCollection.cs
- ProtocolsConfigurationHandler.cs
- BatchStream.cs
- ActivationServices.cs
- UnknownBitmapEncoder.cs
- CultureInfoConverter.cs
- PathGeometry.cs