Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / xsp / System / Web / Extensions / ui / ResourceDisplayNameAttribute.cs / 1 / ResourceDisplayNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; [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 = AtlasWeb.ResourceManager.GetString(_displayNameResourceName, AtlasWeb.Culture); } return base.DisplayName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.ComponentModel; using System.Reflection; using System.Web.Resources; [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 = AtlasWeb.ResourceManager.GetString(_displayNameResourceName, AtlasWeb.Culture); } 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
- SafeFindHandle.cs
- SkipQueryOptionExpression.cs
- TypeConvertions.cs
- DelegatingTypeDescriptionProvider.cs
- ObjectContextServiceProvider.cs
- UnsafeNativeMethods.cs
- ResourceContainer.cs
- SoapHeaderException.cs
- BamlBinaryWriter.cs
- EventEntry.cs
- MILUtilities.cs
- DataTableMapping.cs
- ObjectDataSourceFilteringEventArgs.cs
- HtmlWindow.cs
- ServiceChannel.cs
- DbConnectionPoolCounters.cs
- COM2ComponentEditor.cs
- DrawListViewSubItemEventArgs.cs
- RelatedCurrencyManager.cs
- SystemIPGlobalProperties.cs
- ProgressBarRenderer.cs
- StringReader.cs
- PieceNameHelper.cs
- FixedPageAutomationPeer.cs
- ConfigurationValidatorAttribute.cs
- AutomationEvent.cs
- HttpHandler.cs
- HttpVersion.cs
- TypeConverterAttribute.cs
- GenericTextProperties.cs
- OdbcParameter.cs
- BamlLocalizabilityResolver.cs
- BeginStoryboard.cs
- sqlnorm.cs
- WindowsToolbarAsMenu.cs
- ValueTypeIndexerReference.cs
- XmlQueryStaticData.cs
- ToolStripSeparator.cs
- SevenBitStream.cs
- WpfPayload.cs
- HttpListenerRequest.cs
- Helpers.cs
- ExpressionBuilder.cs
- XDRSchema.cs
- FlowDocumentScrollViewer.cs
- UnsafeNativeMethodsPenimc.cs
- ExpressionBuilderCollection.cs
- ConnectionPointCookie.cs
- XmlReader.cs
- TimeZone.cs
- HttpApplicationFactory.cs
- sqlpipe.cs
- Hashtable.cs
- AuthorizationRule.cs
- StylusDevice.cs
- HttpCachePolicy.cs
- XmlNodeChangedEventManager.cs
- DataSourceBooleanViewSchemaConverter.cs
- CapabilitiesRule.cs
- IPipelineRuntime.cs
- PageFunction.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- XmlDictionaryString.cs
- MappingModelBuildProvider.cs
- WebSysDisplayNameAttribute.cs
- WebPartZone.cs
- SecurityProtocolCorrelationState.cs
- StringInfo.cs
- CodeGenerator.cs
- SchemaImporterExtensionElement.cs
- TextServicesCompartmentContext.cs
- DataBoundControlHelper.cs
- FileRecordSequence.cs
- InvalidateEvent.cs
- TextMetrics.cs
- SqlInfoMessageEvent.cs
- SSmlParser.cs
- DesignerOptionService.cs
- StubHelpers.cs
- ToolStripCustomTypeDescriptor.cs
- GeometryConverter.cs
- IIS7UserPrincipal.cs
- GridViewColumnCollectionChangedEventArgs.cs
- RelatedCurrencyManager.cs
- ArrangedElement.cs
- DefaultEvaluationContext.cs
- Int32Collection.cs
- SecurityRuntime.cs
- COM2EnumConverter.cs
- Array.cs
- MouseOverProperty.cs
- SimpleFieldTemplateFactory.cs
- SQLDecimalStorage.cs
- SmtpSection.cs
- LoginUtil.cs
- SettingsPropertyValue.cs
- ControlIdConverter.cs
- Evaluator.cs
- PrimitiveSchema.cs
- Util.cs