Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWebControls / System / Data / WebControls / ResourceDisplayNameAttribute.cs / 1305376 / ResourceDisplayNameAttribute.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, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDisplayNameAttribute : DisplayNameAttribute { private bool _resourceLoaded; private readonly string _displayNameResourceName; public ResourceDisplayNameAttribute(string displayNameResourceName) { _displayNameResourceName = displayNameResourceName; } public override string DisplayName { get { if (!_resourceLoaded) { _resourceLoaded = true; DisplayNameValue = System.Web.UI.WebControlsRes.GetString(_displayNameResourceName); } return base.DisplayName; } } } } // 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, Inherited = true, AllowMultiple = false)] internal sealed class ResourceDisplayNameAttribute : DisplayNameAttribute { private bool _resourceLoaded; private readonly string _displayNameResourceName; public ResourceDisplayNameAttribute(string displayNameResourceName) { _displayNameResourceName = displayNameResourceName; } public override string DisplayName { get { if (!_resourceLoaded) { _resourceLoaded = true; DisplayNameValue = System.Web.UI.WebControlsRes.GetString(_displayNameResourceName); } return base.DisplayName; } } } } // 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
- XmlExtensionFunction.cs
- ColorMap.cs
- Vector3DCollectionConverter.cs
- ContextQuery.cs
- CaseInsensitiveHashCodeProvider.cs
- ComboBoxAutomationPeer.cs
- JavascriptCallbackResponseProperty.cs
- QueryRewriter.cs
- RuntimeEnvironment.cs
- CodeBlockBuilder.cs
- rsa.cs
- RawStylusInputCustomData.cs
- SqlRecordBuffer.cs
- ZoneMembershipCondition.cs
- AutomationIdentifierGuids.cs
- Int32.cs
- BrowserTree.cs
- SiteMembershipCondition.cs
- SchemaNames.cs
- HebrewCalendar.cs
- SpinLock.cs
- DataServiceClientException.cs
- DSACryptoServiceProvider.cs
- NativeMethods.cs
- GeneralTransform3DCollection.cs
- HelpOperationInvoker.cs
- HtmlControlPersistable.cs
- TlsSspiNegotiation.cs
- FormatConvertedBitmap.cs
- RenderContext.cs
- DataListItem.cs
- storepermissionattribute.cs
- InvokeProviderWrapper.cs
- PolicyLevel.cs
- Journal.cs
- QueryPageSettingsEventArgs.cs
- XmlCDATASection.cs
- FlowDocumentPage.cs
- DefaultAsyncDataDispatcher.cs
- ParsedAttributeCollection.cs
- listviewsubitemcollectioneditor.cs
- WindowsFont.cs
- StringToken.cs
- MessageHeaderDescription.cs
- Point4D.cs
- WindowsUpDown.cs
- DataSourceGroupCollection.cs
- StateRuntime.cs
- SecurityContext.cs
- thaishape.cs
- LogFlushAsyncResult.cs
- ToolStripDropDownItem.cs
- DataBindEngine.cs
- LogicalExpr.cs
- ClientSideQueueItem.cs
- DynamicRenderer.cs
- TableRowCollection.cs
- CheckBox.cs
- Encoder.cs
- XmlSchema.cs
- AttributeTable.cs
- DrawingServices.cs
- ViewLoader.cs
- FormsAuthentication.cs
- HttpHandlersSection.cs
- FontResourceCache.cs
- OperatingSystem.cs
- JavaScriptSerializer.cs
- RtfNavigator.cs
- BrowserDefinitionCollection.cs
- SQLDouble.cs
- RotateTransform3D.cs
- DiscoveryService.cs
- HttpValueCollection.cs
- MulticastIPAddressInformationCollection.cs
- TdsParserHelperClasses.cs
- TableSectionStyle.cs
- SamlNameIdentifierClaimResource.cs
- itemelement.cs
- CatchBlock.cs
- SmtpNegotiateAuthenticationModule.cs
- CheckBoxList.cs
- HtmlTableRowCollection.cs
- TextPatternIdentifiers.cs
- DictionaryEntry.cs
- WasHttpHandlersInstallComponent.cs
- CapacityStreamGeometryContext.cs
- StringValidatorAttribute.cs
- SoapSchemaImporter.cs
- WebPartUtil.cs
- TableRowGroup.cs
- GeometryValueSerializer.cs
- Lease.cs
- DetailsViewUpdatedEventArgs.cs
- SessionStateUtil.cs
- HostExecutionContextManager.cs
- InternalDuplexChannelFactory.cs
- TabControlEvent.cs
- DataReaderContainer.cs
- StagingAreaInputItem.cs