Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- RoutedEvent.cs
- MethodBuilder.cs
- CookieHandler.cs
- PropertyInformationCollection.cs
- EntityContainerEmitter.cs
- RoutedEvent.cs
- Matrix3DStack.cs
- TextRangeEditTables.cs
- PartialList.cs
- TabControl.cs
- JsonEncodingStreamWrapper.cs
- SchemaLookupTable.cs
- XmlAttributeProperties.cs
- FileDialog.cs
- MenuItemCollection.cs
- ResourceExpression.cs
- UpdatePanelTriggerCollection.cs
- SqlRewriteScalarSubqueries.cs
- ConfigurationManagerInternalFactory.cs
- XmlSchemaAttributeGroup.cs
- DesignerToolStripControlHost.cs
- BypassElement.cs
- XmlSchemaInferenceException.cs
- XmlBinaryReader.cs
- GridItemPatternIdentifiers.cs
- HttpCookiesSection.cs
- FloatSumAggregationOperator.cs
- FixedSOMGroup.cs
- BindingExpressionBase.cs
- MsmqBindingFilter.cs
- WindowsHyperlink.cs
- TextViewSelectionProcessor.cs
- PageOutputQuality.cs
- FontFamily.cs
- SoapProtocolReflector.cs
- WmlLinkAdapter.cs
- ImmComposition.cs
- HtmlAnchor.cs
- BoolExpr.cs
- ConsumerConnectionPoint.cs
- ColumnBinding.cs
- TimeoutException.cs
- ArgumentValue.cs
- MailWebEventProvider.cs
- SetterBaseCollection.cs
- ExpandCollapsePattern.cs
- CodeCatchClause.cs
- InputProcessorProfilesLoader.cs
- LinkLabel.cs
- FlowLayoutPanelDesigner.cs
- GridViewRowEventArgs.cs
- DesignerActionPanel.cs
- HtmlTableCell.cs
- HttpResponseHeader.cs
- DataControlFieldCollection.cs
- NextPreviousPagerField.cs
- DataRowChangeEvent.cs
- PointHitTestParameters.cs
- Rect.cs
- HandlerBase.cs
- FormsAuthenticationTicket.cs
- TransformPattern.cs
- MetadataHelper.cs
- ClipboardProcessor.cs
- XmlSchemaSequence.cs
- ManagementPath.cs
- Pair.cs
- DataKey.cs
- UDPClient.cs
- GlyphRunDrawing.cs
- IntranetCredentialPolicy.cs
- CodeAttachEventStatement.cs
- SQLSingle.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- AdornerLayer.cs
- ExecutedRoutedEventArgs.cs
- SafeHandles.cs
- HtmlImage.cs
- ColumnMapProcessor.cs
- FixedSOMGroup.cs
- Claim.cs
- XmlSchemaAnnotation.cs
- ListChangedEventArgs.cs
- XmlValueConverter.cs
- precedingsibling.cs
- ItemChangedEventArgs.cs
- RelationshipSet.cs
- SequentialUshortCollection.cs
- WebBrowserUriTypeConverter.cs
- TextBoxAutoCompleteSourceConverter.cs
- ConfigXmlWhitespace.cs
- ImageFormatConverter.cs
- CacheVirtualItemsEvent.cs
- ListBase.cs
- MailAddress.cs
- QueuedDeliveryRequirementsMode.cs
- XPathDocument.cs
- MaterialGroup.cs
- AnnotationHighlightLayer.cs
- SystemTcpConnection.cs