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
- Evidence.cs
- CompositeFontParser.cs
- PropertyChangingEventArgs.cs
- XDRSchema.cs
- Deflater.cs
- RC2CryptoServiceProvider.cs
- AddInSegmentDirectoryNotFoundException.cs
- PageTextBox.cs
- SiteMapSection.cs
- ValidatingPropertiesEventArgs.cs
- Column.cs
- ObjectDataSourceEventArgs.cs
- UICuesEvent.cs
- FixedDocumentPaginator.cs
- ListDesigner.cs
- ContextStaticAttribute.cs
- DispatchChannelSink.cs
- XmlAttributeOverrides.cs
- PageCanvasSize.cs
- CommentAction.cs
- NavigationPropertyEmitter.cs
- PersistenceTypeAttribute.cs
- ThreadStateException.cs
- X509CertificateCollection.cs
- XmlRawWriter.cs
- DataGridViewDataErrorEventArgs.cs
- HuffCodec.cs
- SecurityPolicySection.cs
- HttpApplication.cs
- ObjectDataSourceView.cs
- DataGridViewCheckBoxColumn.cs
- MimeXmlReflector.cs
- ConfigurationValidatorAttribute.cs
- SqlBulkCopy.cs
- BufferedStream.cs
- DoubleCollection.cs
- CodeGroup.cs
- SessionStateUtil.cs
- TagPrefixInfo.cs
- MsmqDecodeHelper.cs
- Compiler.cs
- CurrentChangingEventManager.cs
- BezierSegment.cs
- InsufficientMemoryException.cs
- EntryIndex.cs
- Parsers.cs
- SingleConverter.cs
- ScrollChrome.cs
- PenLineCapValidation.cs
- TagMapCollection.cs
- DataGridAutomationPeer.cs
- VirtualPath.cs
- JapaneseLunisolarCalendar.cs
- WindowsBrush.cs
- ComboBox.cs
- ListBindableAttribute.cs
- DataServiceCollectionOfT.cs
- XmlnsCompatibleWithAttribute.cs
- GatewayIPAddressInformationCollection.cs
- mediaeventshelper.cs
- ProxyHelper.cs
- ObjectQueryExecutionPlan.cs
- JapaneseLunisolarCalendar.cs
- InvalidFilterCriteriaException.cs
- RuntimeVariableList.cs
- HandleValueEditor.cs
- InputProcessorProfilesLoader.cs
- KeyConstraint.cs
- GraphicsContext.cs
- CodeEventReferenceExpression.cs
- DynamicRendererThreadManager.cs
- ColumnHeader.cs
- Accessible.cs
- DrawingAttributesDefaultValueFactory.cs
- ExpressionPrefixAttribute.cs
- _NestedMultipleAsyncResult.cs
- sqlmetadatafactory.cs
- ListCollectionView.cs
- VisualBasicSettingsHandler.cs
- DataGridViewColumnHeaderCell.cs
- DrawingVisual.cs
- DataSysAttribute.cs
- TextControlDesigner.cs
- DiscoveryReference.cs
- messageonlyhwndwrapper.cs
- DeferredReference.cs
- MetadataProperty.cs
- DashStyles.cs
- StateWorkerRequest.cs
- HtmlCommandAdapter.cs
- PictureBox.cs
- PolyBezierSegment.cs
- CallbackValidator.cs
- AnnotationService.cs
- BoolExpr.cs
- DownloadProgressEventArgs.cs
- XhtmlBasicLiteralTextAdapter.cs
- MaskedTextBoxDesigner.cs
- MarkupExtensionParser.cs
- ValueQuery.cs