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 / ResourceDisplayNameAttribute.cs / 1 / 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
- XmlBinaryReaderSession.cs
- ByteConverter.cs
- MemberInitExpression.cs
- HWStack.cs
- StylusDownEventArgs.cs
- CommandField.cs
- XmlDataSourceView.cs
- RoleService.cs
- CallbackDebugElement.cs
- ScriptModule.cs
- HtmlToClrEventProxy.cs
- LongValidatorAttribute.cs
- XmlKeywords.cs
- TreePrinter.cs
- CompositeScriptReference.cs
- DocumentGridContextMenu.cs
- ProfileServiceManager.cs
- FormViewUpdateEventArgs.cs
- EdmItemCollection.cs
- TakeOrSkipQueryOperator.cs
- TextSpan.cs
- OpCellTreeNode.cs
- SQLDoubleStorage.cs
- RemoteWebConfigurationHost.cs
- ManifestResourceInfo.cs
- SelectionChangedEventArgs.cs
- GridView.cs
- TextMarkerSource.cs
- HtmlElementErrorEventArgs.cs
- ScriptReferenceBase.cs
- ApplicationHost.cs
- SerializerWriterEventHandlers.cs
- DropDownList.cs
- StylusOverProperty.cs
- DeferredSelectedIndexReference.cs
- CodeNamespaceCollection.cs
- __Filters.cs
- httpapplicationstate.cs
- ObjectCloneHelper.cs
- SerializableAttribute.cs
- MatrixAnimationUsingKeyFrames.cs
- ScaleTransform.cs
- IndentedWriter.cs
- PowerModeChangedEventArgs.cs
- OuterGlowBitmapEffect.cs
- BitmapEffectDrawingContextWalker.cs
- Parser.cs
- ValidationHelper.cs
- ProxyWebPart.cs
- AttachedAnnotation.cs
- SystemInfo.cs
- HtmlInputCheckBox.cs
- WindowsListViewGroup.cs
- HelpKeywordAttribute.cs
- HybridCollection.cs
- SingleConverter.cs
- LocalizationComments.cs
- AppDomainProtocolHandler.cs
- IndexedEnumerable.cs
- XmlSerializationReader.cs
- NotifyParentPropertyAttribute.cs
- SchemaImporterExtensionElementCollection.cs
- DetailsViewUpdatedEventArgs.cs
- StrongNameIdentityPermission.cs
- AssociationType.cs
- DataGridViewTopLeftHeaderCell.cs
- BooleanConverter.cs
- EmissiveMaterial.cs
- SqlCommandSet.cs
- HostExecutionContextManager.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- CodeObject.cs
- TextDecorationUnitValidation.cs
- PreviewPrintController.cs
- CharacterString.cs
- RsaSecurityTokenAuthenticator.cs
- NativeBuffer.cs
- StrongTypingException.cs
- WebCategoryAttribute.cs
- PartialCachingAttribute.cs
- Pkcs7Signer.cs
- ImageButton.cs
- IssuanceTokenProviderBase.cs
- HtmlElementEventArgs.cs
- AttachedPropertyBrowsableAttribute.cs
- InvalidDataException.cs
- DiscoveryDocumentLinksPattern.cs
- Literal.cs
- CompositeKey.cs
- DataGridColumn.cs
- SmiMetaDataProperty.cs
- HttpClientProtocol.cs
- KnownTypesHelper.cs
- xmlsaver.cs
- TargetControlTypeAttribute.cs
- returneventsaver.cs
- SimpleTableProvider.cs
- FormViewInsertedEventArgs.cs
- SmtpClient.cs
- DynamicActionMessageFilter.cs