Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / DataWebControlsDesign / System / Data / WebControls / Design / Util / ResourceDescriptionAttribute.cs / 3 / 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
- XmlSignificantWhitespace.cs
- BackStopAuthenticationModule.cs
- UIHelper.cs
- ProviderSettingsCollection.cs
- TextRangeProviderWrapper.cs
- IndentedWriter.cs
- HashSetDebugView.cs
- SmiConnection.cs
- PropertyDescriptorCollection.cs
- PageThemeParser.cs
- MultiSelectRootGridEntry.cs
- PartialCachingAttribute.cs
- DetailsViewUpdateEventArgs.cs
- Socket.cs
- FormsAuthenticationEventArgs.cs
- EntityContainerEntitySetDefiningQuery.cs
- XmlSchemaAttributeGroupRef.cs
- DataViewSettingCollection.cs
- WebPartDisplayModeCollection.cs
- MarginCollapsingState.cs
- IdentityNotMappedException.cs
- HTTPNotFoundHandler.cs
- Splitter.cs
- CounterSampleCalculator.cs
- PersonalizationProviderCollection.cs
- SRGSCompiler.cs
- ThemeableAttribute.cs
- MenuItem.cs
- EntityDesignerUtils.cs
- MessageSmuggler.cs
- MetafileHeader.cs
- RootProfilePropertySettingsCollection.cs
- InputReportEventArgs.cs
- diagnosticsswitches.cs
- PeerCollaboration.cs
- SystemResources.cs
- ProtocolsConfigurationHandler.cs
- CodeCommentStatement.cs
- ColumnBinding.cs
- AdornerPresentationContext.cs
- XmlDataSource.cs
- NullRuntimeConfig.cs
- WebContext.cs
- TimeIntervalCollection.cs
- ApplicationContext.cs
- GridViewColumnCollection.cs
- UnionCodeGroup.cs
- RowCache.cs
- DocumentPage.cs
- RegularExpressionValidator.cs
- ImageDrawing.cs
- mda.cs
- Run.cs
- SessionState.cs
- DocumentReference.cs
- FixedDocumentPaginator.cs
- WebServiceClientProxyGenerator.cs
- UrlMapping.cs
- CapabilitiesSection.cs
- Matrix3D.cs
- SqlServices.cs
- TableColumn.cs
- UnitySerializationHolder.cs
- ExclusiveHandle.cs
- InstancePersistenceEvent.cs
- ThemeDirectoryCompiler.cs
- CaretElement.cs
- RequestCachePolicyConverter.cs
- ThreadExceptionEvent.cs
- ParsedAttributeCollection.cs
- TableItemPatternIdentifiers.cs
- AnimationStorage.cs
- PrtCap_Public.cs
- OciLobLocator.cs
- SctClaimSerializer.cs
- ContextMarshalException.cs
- DisplayMemberTemplateSelector.cs
- Pen.cs
- FontUnitConverter.cs
- TextRenderingModeValidation.cs
- Size.cs
- ObjectSpanRewriter.cs
- ExpressionBindings.cs
- DataGridViewControlCollection.cs
- MetadataHelper.cs
- XamlParser.cs
- EnterpriseServicesHelper.cs
- ErrorView.xaml.cs
- ConfigXmlElement.cs
- StatusBarPanel.cs
- MaskInputRejectedEventArgs.cs
- hresults.cs
- LogicalTreeHelper.cs
- ToolStripDesigner.cs
- ActivityDesignerLayoutSerializers.cs
- CalendarDataBindingHandler.cs
- GridViewRowCollection.cs
- ApplicationTrust.cs
- WindowsTab.cs
- SettingsSavedEventArgs.cs