Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / WebSysDisplayNameAttribute.cs / 1 / WebSysDisplayNameAttribute.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*
*/
namespace System.Web {
using System;
using System.ComponentModel;
///
/// DisplayNameAttribute marks a property, event, or extender with a
/// DisplayName. Visual designers can display this DisplayName when referencing
/// the member.
///
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Class)]
internal sealed class WebSysDisplayNameAttribute : DisplayNameAttribute {
private bool replaced;
///
/// Constructs a new sys DisplayName.
///
internal WebSysDisplayNameAttribute(string DisplayName) : base(DisplayName) {
}
///
/// Retrieves the DisplayName text.
///
public override string DisplayName {
get {
if (!replaced) {
replaced = true;
DisplayNameValue = SR.GetString(base.DisplayName);
}
return base.DisplayName;
}
}
public override object TypeId {
get {
return typeof(DisplayNameAttribute);
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Vector3D.cs
- TextServicesDisplayAttributePropertyRanges.cs
- SqlEnums.cs
- DependencyObject.cs
- MenuItem.cs
- dsa.cs
- ZipIOLocalFileDataDescriptor.cs
- HtmlSelectionListAdapter.cs
- SocketException.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- BaseCAMarshaler.cs
- ConnectionsZone.cs
- Constant.cs
- DataSetUtil.cs
- PropertyDescriptorCollection.cs
- NullRuntimeConfig.cs
- StringFreezingAttribute.cs
- TriggerCollection.cs
- CssTextWriter.cs
- UserControlCodeDomTreeGenerator.cs
- DataGridViewSortCompareEventArgs.cs
- ImageMap.cs
- SqlAliasesReferenced.cs
- XmlSchema.cs
- ListChunk.cs
- UnsafeNetInfoNativeMethods.cs
- MD5.cs
- NetworkInterface.cs
- HttpContextServiceHost.cs
- NamedElement.cs
- SubqueryRules.cs
- XPathNavigator.cs
- ToolStripRendererSwitcher.cs
- ToolStripPanelRenderEventArgs.cs
- EndpointConfigContainer.cs
- EntityDataSourceMemberPath.cs
- TextContainerHelper.cs
- ClientRuntimeConfig.cs
- Point4DValueSerializer.cs
- ByteStream.cs
- WindowsListViewSubItem.cs
- FlowNode.cs
- ToolBarPanel.cs
- FrameworkElementAutomationPeer.cs
- DataGridViewAutoSizeModeEventArgs.cs
- UIElementAutomationPeer.cs
- DocumentStream.cs
- Bookmark.cs
- DeclarationUpdate.cs
- EventPropertyMap.cs
- XmlNullResolver.cs
- LockedActivityGlyph.cs
- Matrix.cs
- StateElementCollection.cs
- SqlDataSourceQuery.cs
- TypographyProperties.cs
- FormClosingEvent.cs
- AttachedPropertyMethodSelector.cs
- AuthenticationServiceManager.cs
- DataContractSet.cs
- CaseStatement.cs
- HatchBrush.cs
- IdentityModelStringsVersion1.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SubclassTypeValidator.cs
- VirtualDirectoryMapping.cs
- TraceAsyncResult.cs
- Compiler.cs
- XmlNullResolver.cs
- TreeNodeMouseHoverEvent.cs
- XsltLoader.cs
- BCryptHashAlgorithm.cs
- SmiContextFactory.cs
- WebBrowserDesigner.cs
- CorrelationResolver.cs
- ControlCachePolicy.cs
- NegatedCellConstant.cs
- ZipIOBlockManager.cs
- DocumentCollection.cs
- TargetPerspective.cs
- ObjectListTitleAttribute.cs
- XsdBuilder.cs
- Error.cs
- SaveFileDialogDesigner.cs
- FileLoadException.cs
- UIHelper.cs
- DbProviderFactories.cs
- FileIOPermission.cs
- TraceLevelStore.cs
- RegexCompiler.cs
- Scheduler.cs
- WmiPutTraceRecord.cs
- RenderDataDrawingContext.cs
- KeyboardEventArgs.cs
- ScaleTransform3D.cs
- ForceCopyBuildProvider.cs
- WebColorConverter.cs
- WindowsComboBox.cs
- TableRowCollection.cs
- AppSettingsExpressionBuilder.cs