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
- CanonicalXml.cs
- XamlPointCollectionSerializer.cs
- DataRelation.cs
- GlyphsSerializer.cs
- SimpleRecyclingCache.cs
- InheritanceUI.cs
- MessageHeaderInfoTraceRecord.cs
- CompositeCollectionView.cs
- TrackingRecord.cs
- DataGridItemAttachedStorage.cs
- GroupBoxRenderer.cs
- ObjectDataSourceFilteringEventArgs.cs
- dbenumerator.cs
- Utils.cs
- CodeGotoStatement.cs
- ProtocolsConfigurationHandler.cs
- CalendarDay.cs
- TabPanel.cs
- Perspective.cs
- WebPartMovingEventArgs.cs
- DataReaderContainer.cs
- ToolStripEditorManager.cs
- UpdateProgress.cs
- PerformanceCounter.cs
- TimeSpan.cs
- Marshal.cs
- SimpleType.cs
- CatalogPartChrome.cs
- SiteMapNodeItemEventArgs.cs
- Optimizer.cs
- httpapplicationstate.cs
- SqlTrackingQuery.cs
- DesignerLoader.cs
- thaishape.cs
- BooleanSwitch.cs
- ProofTokenCryptoHandle.cs
- GridItemCollection.cs
- ListBox.cs
- DBNull.cs
- ViewGenResults.cs
- ResizeGrip.cs
- GridViewRowEventArgs.cs
- IdentityModelStringsVersion1.cs
- LOSFormatter.cs
- HashMembershipCondition.cs
- HttpCapabilitiesBase.cs
- PlanCompilerUtil.cs
- MasterPage.cs
- XmlValueConverter.cs
- SinglePageViewer.cs
- TableCellAutomationPeer.cs
- LocatorPart.cs
- Utils.cs
- WebEventCodes.cs
- BitmapDownload.cs
- ContentPropertyAttribute.cs
- PagesChangedEventArgs.cs
- ComboBoxDesigner.cs
- ScriptDescriptor.cs
- MasterPageParser.cs
- ISAPIWorkerRequest.cs
- AsymmetricKeyExchangeDeformatter.cs
- EntryWrittenEventArgs.cs
- AdapterDictionary.cs
- BulletChrome.cs
- DefaultValueAttribute.cs
- DataGridViewAddColumnDialog.cs
- FocusTracker.cs
- QuotedStringWriteStateInfo.cs
- BitmapEffectDrawingContent.cs
- DelimitedListTraceListener.cs
- ParameterModifier.cs
- GlobalizationSection.cs
- FixedSOMTableRow.cs
- QuaternionAnimation.cs
- XmlElementAttributes.cs
- ToolboxSnapDragDropEventArgs.cs
- figurelengthconverter.cs
- SafeTimerHandle.cs
- MenuAdapter.cs
- PublisherIdentityPermission.cs
- XmlWriter.cs
- TimeoutStream.cs
- ViewCellRelation.cs
- XmlWriterDelegator.cs
- CustomWebEventKey.cs
- ColumnWidthChangedEvent.cs
- UnsafeNativeMethods.cs
- ControlPropertyNameConverter.cs
- ExpressionEvaluator.cs
- Debug.cs
- SqlDataSource.cs
- CanonicalFontFamilyReference.cs
- PointCollectionConverter.cs
- TextRange.cs
- ContentPropertyAttribute.cs
- HTMLTagNameToTypeMapper.cs
- DBCommand.cs
- GridViewPageEventArgs.cs
- ProfileServiceManager.cs