Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / 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.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
- FixedBufferAttribute.cs
- TypeBuilder.cs
- WebBrowserNavigatingEventHandler.cs
- SerializableAttribute.cs
- StatusBarPanel.cs
- Executor.cs
- XsltContext.cs
- ObjectAnimationUsingKeyFrames.cs
- ServiceCredentialsElement.cs
- ListItemCollection.cs
- RangeContentEnumerator.cs
- WebPartMenuStyle.cs
- SHA1Managed.cs
- KeyPressEvent.cs
- serverconfig.cs
- MachineKeyConverter.cs
- DbProviderServices.cs
- SelectedGridItemChangedEvent.cs
- CompilerErrorCollection.cs
- SystemPens.cs
- UrlMappingsModule.cs
- FormsAuthenticationUser.cs
- MbpInfo.cs
- ContentPresenter.cs
- HttpRawResponse.cs
- TextBoxBase.cs
- EntityCommandDefinition.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- ChannelPoolSettings.cs
- SafeViewOfFileHandle.cs
- BypassElementCollection.cs
- Int16Converter.cs
- ImageConverter.cs
- TitleStyle.cs
- SQLInt64.cs
- ZipFileInfo.cs
- NamespaceCollection.cs
- CodeMethodReturnStatement.cs
- PageSettings.cs
- SqlDataSourceFilteringEventArgs.cs
- SystemUdpStatistics.cs
- FixedSOMFixedBlock.cs
- TextBoxView.cs
- HttpHandlersSection.cs
- LambdaCompiler.ControlFlow.cs
- EditorZoneDesigner.cs
- MenuAutomationPeer.cs
- DeviceContexts.cs
- DBCommand.cs
- GenericEnumConverter.cs
- CompiledQuery.cs
- XmlIlVisitor.cs
- CommonServiceBehaviorElement.cs
- RangeValuePatternIdentifiers.cs
- DataSourceConverter.cs
- ArgIterator.cs
- ParallelDesigner.xaml.cs
- Schema.cs
- CommonRemoteMemoryBlock.cs
- TdsParserSessionPool.cs
- ContentIterators.cs
- SqlAliasesReferenced.cs
- LinqDataSourceInsertEventArgs.cs
- ViewGenerator.cs
- Underline.cs
- GCHandleCookieTable.cs
- TypedTableBaseExtensions.cs
- RedirectionProxy.cs
- EditorAttributeInfo.cs
- StateManagedCollection.cs
- MultiViewDesigner.cs
- Pair.cs
- XPathSelectionIterator.cs
- MemoryRecordBuffer.cs
- TrustManagerMoreInformation.cs
- EdmMember.cs
- SymmetricKeyWrap.cs
- XmlSchemaRedefine.cs
- embossbitmapeffect.cs
- SQLGuidStorage.cs
- ObjectDataSourceSelectingEventArgs.cs
- FlowDecision.cs
- OdbcTransaction.cs
- ImageListStreamer.cs
- DataService.cs
- SizeAnimation.cs
- ElementHostPropertyMap.cs
- RemoteEndpointMessageProperty.cs
- HandleValueEditor.cs
- EqualityArray.cs
- HostExecutionContextManager.cs
- ACE.cs
- TraceProvider.cs
- FamilyMapCollection.cs
- ElementMarkupObject.cs
- WCFModelStrings.Designer.cs
- WSDualHttpBinding.cs
- DesignerPerfEventProvider.cs
- SimpleWebHandlerParser.cs
- DataSourceXmlElementAttribute.cs