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
- Span.cs
- PageTheme.cs
- SoapHttpTransportImporter.cs
- AttachedAnnotation.cs
- WorkflowQueue.cs
- GridViewAutomationPeer.cs
- ConcatQueryOperator.cs
- SByteStorage.cs
- SafeSecurityHandles.cs
- HitTestWithGeometryDrawingContextWalker.cs
- _SafeNetHandles.cs
- WebPartAuthorizationEventArgs.cs
- _ConnectStream.cs
- DependencyObjectValidator.cs
- CodeBlockBuilder.cs
- RTLAwareMessageBox.cs
- KeyValueConfigurationElement.cs
- _ListenerResponseStream.cs
- thaishape.cs
- DataMisalignedException.cs
- DataControlPagerLinkButton.cs
- Material.cs
- StreamResourceInfo.cs
- XmlWrappingWriter.cs
- Compiler.cs
- ReferenceConverter.cs
- ValidationErrorCollection.cs
- CodeIterationStatement.cs
- Membership.cs
- ACE.cs
- VersionValidator.cs
- MimePart.cs
- WindowPattern.cs
- OutputCacheSection.cs
- ChangeInterceptorAttribute.cs
- ColumnTypeConverter.cs
- MethodSet.cs
- basecomparevalidator.cs
- RuleSetDialog.cs
- OleDbEnumerator.cs
- NegotiateStream.cs
- ExpressionBuilder.cs
- ToolStripSystemRenderer.cs
- templategroup.cs
- DbConnectionPoolOptions.cs
- MemoryFailPoint.cs
- SafeFileMappingHandle.cs
- ListViewInsertedEventArgs.cs
- RemotingHelper.cs
- GeometryModel3D.cs
- EncryptedXml.cs
- ListBindableAttribute.cs
- NewItemsContextMenuStrip.cs
- XPathDocument.cs
- CompositeControl.cs
- XmlEnumAttribute.cs
- ScriptReferenceBase.cs
- Base64Decoder.cs
- DBConcurrencyException.cs
- MatrixKeyFrameCollection.cs
- UserNameSecurityToken.cs
- Figure.cs
- Debugger.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ConfigurationPermission.cs
- HasCopySemanticsAttribute.cs
- DeferredElementTreeState.cs
- _SafeNetHandles.cs
- RuntimeIdentifierPropertyAttribute.cs
- JsonXmlDataContract.cs
- CatalogPartChrome.cs
- SecurityDocument.cs
- CombinedHttpChannel.cs
- COM2PictureConverter.cs
- XmlSchemaAttribute.cs
- RankException.cs
- Pointer.cs
- SqlXml.cs
- UICuesEvent.cs
- EditableTreeList.cs
- ListViewCancelEventArgs.cs
- DocumentCollection.cs
- ObjectDataSourceDisposingEventArgs.cs
- DataStreams.cs
- DataGridPagerStyle.cs
- IsolationInterop.cs
- RelationshipManager.cs
- ScriptControlDescriptor.cs
- ButtonField.cs
- PropertyInformation.cs
- TraceHelpers.cs
- OutputCacheProviderCollection.cs
- LayoutExceptionEventArgs.cs
- TypeBuilderInstantiation.cs
- AppSettingsReader.cs
- TextRangeAdaptor.cs
- SchemaLookupTable.cs
- SerialPort.cs
- WorkflowOperationFault.cs
- FileFormatException.cs