Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; ////// internal WebSysDisplayNameAttribute(string DisplayName) : base(DisplayName) { } ///Constructs a new sys DisplayName. ////// 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); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Retrieves the DisplayName text. ///// 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; ////// internal WebSysDisplayNameAttribute(string DisplayName) : base(DisplayName) { } ///Constructs a new sys DisplayName. ////// 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); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Retrieves the DisplayName text. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TypeDescriptor.cs
- SettingsProviderCollection.cs
- RSACryptoServiceProvider.cs
- WebPartMenu.cs
- DataGridAddNewRow.cs
- XmlC14NWriter.cs
- NegotiateStream.cs
- EditingScope.cs
- DesignerHelpers.cs
- StreamResourceInfo.cs
- PinnedBufferMemoryStream.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- EntityCommandDefinition.cs
- WebServiceHandler.cs
- BaseCAMarshaler.cs
- TextTrailingWordEllipsis.cs
- WindowsToolbarAsMenu.cs
- InfoCardBaseException.cs
- WebUtil.cs
- Path.cs
- HybridWebProxyFinder.cs
- ConnectionConsumerAttribute.cs
- AttributeData.cs
- RepeaterItemCollection.cs
- ToolStripPanelRow.cs
- UrlMappingsSection.cs
- AxHost.cs
- MultiBindingExpression.cs
- NCryptSafeHandles.cs
- TextFindEngine.cs
- CellParaClient.cs
- WindowsRichEditRange.cs
- SendMailErrorEventArgs.cs
- AssemblyUtil.cs
- QualifiedCellIdBoolean.cs
- SafeSystemMetrics.cs
- GlobalDataBindingHandler.cs
- UserPreferenceChangedEventArgs.cs
- GrammarBuilderWildcard.cs
- ThreadAttributes.cs
- DbSetClause.cs
- BamlResourceContent.cs
- CollectionsUtil.cs
- PrinterSettings.cs
- MediaPlayerState.cs
- Version.cs
- Attributes.cs
- DataServiceConfiguration.cs
- Accessors.cs
- ValueExpressions.cs
- MappingItemCollection.cs
- OracleException.cs
- ValuePatternIdentifiers.cs
- AnnouncementSendsAsyncResult.cs
- EdmType.cs
- ProxyGenerationError.cs
- WorkflowServiceHost.cs
- HttpServerProtocol.cs
- MenuEventArgs.cs
- Cursors.cs
- InvalidPropValue.cs
- PaginationProgressEventArgs.cs
- OdbcConnectionHandle.cs
- TextUtf8RawTextWriter.cs
- ContractMapping.cs
- XamlFigureLengthSerializer.cs
- WsiProfilesElement.cs
- PriorityQueue.cs
- InternalsVisibleToAttribute.cs
- MimeParameter.cs
- ToolboxItemCollection.cs
- AttributeAction.cs
- EntityConnection.cs
- AppSettingsReader.cs
- EventHandlerList.cs
- TemplateBindingExpression.cs
- HttpContextServiceHost.cs
- BoundPropertyEntry.cs
- MatrixValueSerializer.cs
- Section.cs
- ReachFixedDocumentSerializer.cs
- SiteMapHierarchicalDataSourceView.cs
- BitmapPalettes.cs
- ChannelToken.cs
- AtomEntry.cs
- FilterException.cs
- XmlC14NWriter.cs
- ColumnCollectionEditor.cs
- ReferencedAssembly.cs
- MultiTrigger.cs
- HtmlFormAdapter.cs
- X509Certificate2.cs
- HwndSourceParameters.cs
- WS2007HttpBinding.cs
- MetaColumn.cs
- CreateUserWizard.cs
- OleDbReferenceCollection.cs
- ListItemParagraph.cs
- ClientRoleProvider.cs
- TextRangeEditLists.cs