Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Util.cs
- RbTree.cs
- XmlDocumentFragment.cs
- RequestCacheEntry.cs
- COM2FontConverter.cs
- ScriptDescriptor.cs
- CryptoStream.cs
- TableDetailsRow.cs
- HuffCodec.cs
- PeerCollaboration.cs
- TrackingValidationObjectDictionary.cs
- WindowsIPAddress.cs
- ScriptHandlerFactory.cs
- WebPartConnectionsCancelVerb.cs
- DataPager.cs
- SafeHGlobalHandleCritical.cs
- RoleServiceManager.cs
- DataTableReader.cs
- EntityDataSourceChangedEventArgs.cs
- AnonymousIdentificationSection.cs
- SqlClientFactory.cs
- LineGeometry.cs
- XomlCompilerHelpers.cs
- DockPattern.cs
- CheckBox.cs
- GetImportFileNameRequest.cs
- TreeViewAutomationPeer.cs
- WebServiceMethodData.cs
- SoapTransportImporter.cs
- ParameterToken.cs
- PropertyExpression.cs
- RemoteWebConfigurationHostServer.cs
- TextEndOfLine.cs
- X509Certificate.cs
- PropertyPushdownHelper.cs
- TdsParserStateObject.cs
- TextFormatterImp.cs
- ThicknessAnimation.cs
- UncommonField.cs
- TimeZone.cs
- CSharpCodeProvider.cs
- XmlDataCollection.cs
- LiteralControl.cs
- HtmlDocument.cs
- _NetworkingPerfCounters.cs
- ButtonPopupAdapter.cs
- NamedPipeAppDomainProtocolHandler.cs
- UserPreferenceChangingEventArgs.cs
- EntityDataSourceEntityTypeFilterItem.cs
- DoubleAnimationClockResource.cs
- ExtensionFile.cs
- XPathException.cs
- WorkflowElementDialogWindow.xaml.cs
- XamlGridLengthSerializer.cs
- HttpVersion.cs
- SchemaExporter.cs
- BitmapVisualManager.cs
- SafeLocalAllocation.cs
- KeyInterop.cs
- SoapExtensionTypeElementCollection.cs
- TraceSection.cs
- WinEventHandler.cs
- WeakReference.cs
- BitmapPalette.cs
- FrameworkRichTextComposition.cs
- Material.cs
- BinaryQueryOperator.cs
- RewritingValidator.cs
- DbConnectionHelper.cs
- tooltip.cs
- ApplicationServiceManager.cs
- RegexReplacement.cs
- MetadataItemSerializer.cs
- OleDbReferenceCollection.cs
- CallbackValidator.cs
- DirectoryRootQuery.cs
- BufferModeSettings.cs
- TextServicesHost.cs
- EventLogEntryCollection.cs
- DSASignatureFormatter.cs
- TdsRecordBufferSetter.cs
- KeyPressEvent.cs
- SoapAttributeOverrides.cs
- CompoundFileStorageReference.cs
- EditingCommands.cs
- RequestSecurityTokenForGetBrowserToken.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DataGridViewComboBoxCell.cs
- DataServiceQueryException.cs
- BoundsDrawingContextWalker.cs
- FaultHandlingFilter.cs
- TreeNodeSelectionProcessor.cs
- DbProviderFactoriesConfigurationHandler.cs
- DataViewManager.cs
- AppDomainUnloadedException.cs
- ClientScriptManagerWrapper.cs
- SocketInformation.cs
- XmlSerializerAssemblyAttribute.cs
- AppDomainUnloadedException.cs
- MailWriter.cs