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
- XamlUtilities.cs
- LogLogRecord.cs
- Stack.cs
- BinaryParser.cs
- PathSegment.cs
- AuthenticationManager.cs
- DataColumnMappingCollection.cs
- SecondaryIndex.cs
- Int16Converter.cs
- Icon.cs
- Registry.cs
- RequestCacheValidator.cs
- FaultFormatter.cs
- TextMessageEncoder.cs
- PolicyVersion.cs
- RowSpanVector.cs
- ProviderSettingsCollection.cs
- UnsafeNativeMethods.cs
- IIS7UserPrincipal.cs
- Icon.cs
- KeyValueConfigurationElement.cs
- Animatable.cs
- InvalidOperationException.cs
- ItemChangedEventArgs.cs
- CodeDirectionExpression.cs
- OleDbReferenceCollection.cs
- Empty.cs
- GridView.cs
- PlanCompiler.cs
- TextDataBindingHandler.cs
- CompilerScopeManager.cs
- TemplateControlCodeDomTreeGenerator.cs
- StdValidatorsAndConverters.cs
- BitHelper.cs
- WindowsAuthenticationEventArgs.cs
- HtmlContainerControl.cs
- NotifyCollectionChangedEventArgs.cs
- SemanticKeyElement.cs
- DocComment.cs
- XmlSchemaObjectTable.cs
- SiteIdentityPermission.cs
- UnicastIPAddressInformationCollection.cs
- SpinLock.cs
- ValueOfAction.cs
- XamlSerializerUtil.cs
- ImageClickEventArgs.cs
- DocumentGrid.cs
- ProtocolProfile.cs
- SafeNativeMethods.cs
- HybridObjectCache.cs
- SiteMapNodeCollection.cs
- XmlAutoDetectWriter.cs
- ExceptionRoutedEventArgs.cs
- FontUnit.cs
- ConfigPathUtility.cs
- EntryPointNotFoundException.cs
- CapabilitiesUse.cs
- Keyboard.cs
- MemberDomainMap.cs
- LicFileLicenseProvider.cs
- BooleanAnimationUsingKeyFrames.cs
- MatrixAnimationUsingPath.cs
- VisualStyleRenderer.cs
- SplashScreenNativeMethods.cs
- WindowsTab.cs
- ThreadAbortException.cs
- DecoderFallback.cs
- Variant.cs
- SystemFonts.cs
- DataGridHelper.cs
- ConfigurationException.cs
- EntitySetRetriever.cs
- CodeIdentifier.cs
- DrawingCollection.cs
- TextEffectResolver.cs
- HtmlMeta.cs
- TextRangeProviderWrapper.cs
- NavigatorInput.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DataGridViewTopRowAccessibleObject.cs
- ProcessStartInfo.cs
- input.cs
- PagePropertiesChangingEventArgs.cs
- XmlDataDocument.cs
- DataRowView.cs
- Int16AnimationUsingKeyFrames.cs
- InheritanceContextChangedEventManager.cs
- NetNamedPipeBinding.cs
- FigureParaClient.cs
- Trace.cs
- MarshalDirectiveException.cs
- RequestResponse.cs
- TextFormatterContext.cs
- XmlCustomFormatter.cs
- PathGeometry.cs
- VsPropertyGrid.cs
- WaitHandle.cs
- DoubleAnimationUsingPath.cs
- TimeStampChecker.cs
- OracleCommandSet.cs