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
- ToolBarPanel.cs
- DefaultPrintController.cs
- BufferModesCollection.cs
- HtmlDocument.cs
- WindowsFormsHelpers.cs
- DataControlFieldHeaderCell.cs
- AvtEvent.cs
- DrawingContextDrawingContextWalker.cs
- ListenerHandler.cs
- CLSCompliantAttribute.cs
- FormViewDesigner.cs
- ClockGroup.cs
- ParagraphResult.cs
- ImmutablePropertyDescriptorGridEntry.cs
- SafeCryptoHandles.cs
- XmlExpressionDumper.cs
- dataSvcMapFileLoader.cs
- StylusDownEventArgs.cs
- SecureStringHasher.cs
- SmiEventSink_Default.cs
- DockProviderWrapper.cs
- ProtocolsConfiguration.cs
- EventArgs.cs
- __Filters.cs
- DesignSurfaceManager.cs
- DataGridLinkButton.cs
- ExpanderAutomationPeer.cs
- VBCodeProvider.cs
- ColorBlend.cs
- HwndHostAutomationPeer.cs
- XmlSchemaRedefine.cs
- LoginView.cs
- BitmapFrameDecode.cs
- TraceFilter.cs
- BinaryObjectInfo.cs
- ExtensionWindowResizeGrip.cs
- ViewPort3D.cs
- XmlEnumAttribute.cs
- ISessionStateStore.cs
- AnnotationStore.cs
- TailPinnedEventArgs.cs
- TailCallAnalyzer.cs
- ListViewInsertedEventArgs.cs
- SQLByteStorage.cs
- InfoCardSymmetricCrypto.cs
- XmlNullResolver.cs
- WebUtil.cs
- ObjectStateEntry.cs
- DrawingCollection.cs
- SqlTopReducer.cs
- Dictionary.cs
- DesignTimeDataBinding.cs
- AuthorizationRule.cs
- HtmlGenericControl.cs
- DataList.cs
- X509ChainPolicy.cs
- PeerDuplexChannel.cs
- ReadOnlyCollection.cs
- WSFederationHttpBindingCollectionElement.cs
- InternalsVisibleToAttribute.cs
- DefaultProxySection.cs
- CheckPair.cs
- ResolvedKeyFrameEntry.cs
- AnimationTimeline.cs
- TemplatePartAttribute.cs
- Message.cs
- GridViewEditEventArgs.cs
- PrimitiveCodeDomSerializer.cs
- DropSource.cs
- BoolLiteral.cs
- MultipleViewPattern.cs
- EditorPartDesigner.cs
- PagerSettings.cs
- WindowsToolbarItemAsMenuItem.cs
- TreeNodeSelectionProcessor.cs
- WebConfigurationHost.cs
- EntityCommandCompilationException.cs
- HuffModule.cs
- LineServices.cs
- XmlChildNodes.cs
- BevelBitmapEffect.cs
- BookmarkUndoUnit.cs
- XmlnsDictionary.cs
- AnnotationResourceCollection.cs
- DataServiceProviderMethods.cs
- ParentQuery.cs
- ArrayElementGridEntry.cs
- EventLogPermissionEntryCollection.cs
- TabItem.cs
- ManagementObjectSearcher.cs
- DurableMessageDispatchInspector.cs
- SeparatorAutomationPeer.cs
- FormViewRow.cs
- EntityTypeEmitter.cs
- PreviewKeyDownEventArgs.cs
- DataGridCell.cs
- TextRunProperties.cs
- DockAndAnchorLayout.cs
- TrustLevelCollection.cs
- LambdaCompiler.Generated.cs