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
- JsonCollectionDataContract.cs
- WrapperEqualityComparer.cs
- ListChunk.cs
- XmlCharacterData.cs
- EntityStoreSchemaGenerator.cs
- PreservationFileReader.cs
- EntityDesignerUtils.cs
- AllMembershipCondition.cs
- UriScheme.cs
- ProvidePropertyAttribute.cs
- TabControl.cs
- cookie.cs
- MappableObjectManager.cs
- QueryMatcher.cs
- AnchoredBlock.cs
- Help.cs
- UInt32.cs
- ToolStripContentPanelRenderEventArgs.cs
- OleDbPermission.cs
- ExtensionSurface.cs
- HyperLink.cs
- XmlUnspecifiedAttribute.cs
- ProcessActivityTreeOptions.cs
- FileUpload.cs
- HostedImpersonationContext.cs
- ToolStripAdornerWindowService.cs
- GroupBoxRenderer.cs
- CallContext.cs
- DataGridViewComboBoxCell.cs
- Vector3DIndependentAnimationStorage.cs
- ConfigXmlElement.cs
- MetaDataInfo.cs
- TransactedReceiveScope.cs
- KeyboardDevice.cs
- GenericTextProperties.cs
- ParallelForEach.cs
- BinarySerializer.cs
- SettingsPropertyNotFoundException.cs
- MouseBinding.cs
- HttpHeaderCollection.cs
- ObfuscateAssemblyAttribute.cs
- BitmapData.cs
- EntityTemplateUserControl.cs
- UIElementAutomationPeer.cs
- XmlJsonWriter.cs
- SerializationException.cs
- LongValidatorAttribute.cs
- Int32Rect.cs
- ObjectStorage.cs
- CngAlgorithmGroup.cs
- InputMethod.cs
- HtmlElementCollection.cs
- control.ime.cs
- FixedSOMTable.cs
- MatrixValueSerializer.cs
- UnitySerializationHolder.cs
- BidOverLoads.cs
- shaperfactory.cs
- MonitoringDescriptionAttribute.cs
- ClientSponsor.cs
- EntityContainer.cs
- WebServiceBindingAttribute.cs
- LayoutEvent.cs
- SqlTypeConverter.cs
- ExceptionUtil.cs
- DataGridViewDataErrorEventArgs.cs
- FactorySettingsElement.cs
- XamlReader.cs
- DrawListViewColumnHeaderEventArgs.cs
- NativeRecognizer.cs
- DetailsViewDeleteEventArgs.cs
- lengthconverter.cs
- HostingEnvironmentException.cs
- ImageAutomationPeer.cs
- TimelineGroup.cs
- ExpandedWrapper.cs
- RoleGroupCollection.cs
- TemplateBindingExpression.cs
- DataListItemCollection.cs
- CodeSnippetTypeMember.cs
- AdapterUtil.cs
- BaseValidatorDesigner.cs
- MultiPropertyDescriptorGridEntry.cs
- SectionInput.cs
- OrderedDictionaryStateHelper.cs
- HtmlEmptyTagControlBuilder.cs
- RenderData.cs
- PathStreamGeometryContext.cs
- Interlocked.cs
- mongolianshape.cs
- UserControlParser.cs
- ChannelManager.cs
- altserialization.cs
- SystemThemeKey.cs
- PngBitmapDecoder.cs
- ProtocolsConfigurationEntry.cs
- PrintControllerWithStatusDialog.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- StylusLogic.cs
- String.cs