Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / UI / ResourceDisplayNameAttribute.cs / 1305376 / 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
- DataTableNewRowEvent.cs
- AutomationPropertyInfo.cs
- XmlNamedNodeMap.cs
- EncryptedData.cs
- PersonalizationAdministration.cs
- ApplyTemplatesAction.cs
- DataPagerField.cs
- Vector3DConverter.cs
- Vector3DKeyFrameCollection.cs
- BinHexEncoder.cs
- EpmTargetPathSegment.cs
- SingleQueryOperator.cs
- EmptyCollection.cs
- XmlSchemaValidator.cs
- FormViewCommandEventArgs.cs
- DataServiceQueryException.cs
- EventLogPermissionEntryCollection.cs
- Win32KeyboardDevice.cs
- MenuItem.cs
- Point3DValueSerializer.cs
- ComponentCommands.cs
- ValueUnavailableException.cs
- Screen.cs
- DetailsViewUpdatedEventArgs.cs
- ZipFileInfoCollection.cs
- RenderingEventArgs.cs
- RecordManager.cs
- XmlBoundElement.cs
- ThreadStaticAttribute.cs
- ReaderWriterLock.cs
- SelectionItemPatternIdentifiers.cs
- ClassGenerator.cs
- AssertUtility.cs
- ProtectedProviderSettings.cs
- SelectionList.cs
- ConvertersCollection.cs
- DataStreamFromComStream.cs
- PageBreakRecord.cs
- TextDecorationCollection.cs
- SortQuery.cs
- ComponentDispatcherThread.cs
- LineGeometry.cs
- Dispatcher.cs
- HtmlTernaryTree.cs
- DocumentEventArgs.cs
- ObjectStorage.cs
- WsdlBuildProvider.cs
- DataViewSettingCollection.cs
- SerializationSectionGroup.cs
- SupportsEventValidationAttribute.cs
- SchemaNotation.cs
- HScrollBar.cs
- TextDecorationCollection.cs
- CodeConstructor.cs
- JoinElimination.cs
- ValueQuery.cs
- StylusPointDescription.cs
- TypefaceMetricsCache.cs
- GcHandle.cs
- RNGCryptoServiceProvider.cs
- ExceptionDetail.cs
- SelectionListDesigner.cs
- SymbolMethod.cs
- WorkflowRuntimeServiceElementCollection.cs
- ColumnClickEvent.cs
- EncoderFallback.cs
- ActivityBuilderHelper.cs
- StructuredType.cs
- ReceiveContext.cs
- SupportsEventValidationAttribute.cs
- StickyNoteContentControl.cs
- DecimalAnimation.cs
- ResXResourceWriter.cs
- ImageClickEventArgs.cs
- OdbcErrorCollection.cs
- RNGCryptoServiceProvider.cs
- OutgoingWebRequestContext.cs
- DataGridAddNewRow.cs
- DesignerInterfaces.cs
- WaveHeader.cs
- TcpAppDomainProtocolHandler.cs
- WebMessageBodyStyleHelper.cs
- RangeBaseAutomationPeer.cs
- FilterRepeater.cs
- COM2IProvidePropertyBuilderHandler.cs
- ValueTypeFieldReference.cs
- GridViewSortEventArgs.cs
- ProviderIncompatibleException.cs
- CLRBindingWorker.cs
- SafeFileMapViewHandle.cs
- UrlMapping.cs
- CellRelation.cs
- LinkLabelLinkClickedEvent.cs
- DBSchemaTable.cs
- TimeSpanStorage.cs
- BindingNavigatorDesigner.cs
- CaseExpr.cs
- SystemMulticastIPAddressInformation.cs
- HtmlMeta.cs
- TableRow.cs