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
- Exceptions.cs
- ImageCreator.cs
- CompositeScriptReferenceEventArgs.cs
- TemplateInstanceAttribute.cs
- RemoteWebConfigurationHostServer.cs
- TreeViewImageKeyConverter.cs
- AppDomainAttributes.cs
- TableProvider.cs
- PropertyInformation.cs
- Assert.cs
- StylusCollection.cs
- InvalidCommandTreeException.cs
- HighlightComponent.cs
- EvidenceTypeDescriptor.cs
- MaskDescriptors.cs
- SafeHandle.cs
- TablePattern.cs
- SqlAggregateChecker.cs
- DataListItem.cs
- WebPartUtil.cs
- ProxyWebPart.cs
- ColorConvertedBitmap.cs
- OracleCommandSet.cs
- ColorTransform.cs
- SafeWaitHandle.cs
- SyntaxCheck.cs
- IdentityModelDictionary.cs
- x509store.cs
- ProxyElement.cs
- DeflateStream.cs
- WebPartMinimizeVerb.cs
- Help.cs
- WebPartEditorApplyVerb.cs
- LinkUtilities.cs
- SoapFormatter.cs
- CultureInfo.cs
- ScalarRestriction.cs
- ButtonStandardAdapter.cs
- AddInDeploymentState.cs
- SchemaMapping.cs
- securitycriticaldata.cs
- DebugHandleTracker.cs
- PackUriHelper.cs
- CmsInterop.cs
- SQLStringStorage.cs
- Bidi.cs
- DrawingAttributes.cs
- CustomAttributeFormatException.cs
- GridViewCancelEditEventArgs.cs
- MetadataItem.cs
- GridItemPattern.cs
- ListViewItemSelectionChangedEvent.cs
- SessionIDManager.cs
- CheckBox.cs
- SmiMetaDataProperty.cs
- ListViewInsertionMark.cs
- httpapplicationstate.cs
- WebZoneDesigner.cs
- RoleManagerModule.cs
- BrowserTree.cs
- ResizeGrip.cs
- OracleInfoMessageEventArgs.cs
- _DigestClient.cs
- FontFamilyIdentifier.cs
- AssemblyNameProxy.cs
- DateTimeConverter2.cs
- ProjectedSlot.cs
- ADMembershipProvider.cs
- ColumnPropertiesGroup.cs
- SystemEvents.cs
- WebServicesInteroperability.cs
- ServiceObjectContainer.cs
- VisualBasicSettingsHandler.cs
- ExtensionCollection.cs
- ScaleTransform3D.cs
- NotifyParentPropertyAttribute.cs
- QilChoice.cs
- DrawingImage.cs
- DummyDataSource.cs
- QilXmlReader.cs
- FreeFormDragDropManager.cs
- HttpApplicationFactory.cs
- coordinatorscratchpad.cs
- XamlWrapperReaders.cs
- XpsSerializationManager.cs
- ReleaseInstanceMode.cs
- DocumentSequence.cs
- Funcletizer.cs
- ComUdtElement.cs
- Dispatcher.cs
- DateTimeConstantAttribute.cs
- FixedSOMTextRun.cs
- SchemaCollectionPreprocessor.cs
- PropertyGridEditorPart.cs
- XmlBindingWorker.cs
- COM2ExtendedUITypeEditor.cs
- SiteMapDataSourceView.cs
- AccessDataSource.cs
- SoapDocumentServiceAttribute.cs
- TabItem.cs