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
- BinaryFormatter.cs
- SqlExpander.cs
- UriExt.cs
- NameValueCollection.cs
- OracleRowUpdatedEventArgs.cs
- CodeAccessPermission.cs
- OutOfProcStateClientManager.cs
- ToolStripCodeDomSerializer.cs
- GridViewHeaderRowPresenter.cs
- XappLauncher.cs
- __ConsoleStream.cs
- MatrixKeyFrameCollection.cs
- TypeUtil.cs
- PageAction.cs
- LinkedList.cs
- BufferCache.cs
- DependencyProperty.cs
- LinearQuaternionKeyFrame.cs
- Missing.cs
- RemotingAttributes.cs
- PropertyEntry.cs
- TreeViewEvent.cs
- XmlSiteMapProvider.cs
- ListViewGroupConverter.cs
- TrackBarDesigner.cs
- EdmSchemaAttribute.cs
- RequestQueryProcessor.cs
- CodeObjectCreateExpression.cs
- DataContractFormatAttribute.cs
- PrintDialog.cs
- FrameworkRichTextComposition.cs
- DataBoundLiteralControl.cs
- CoreSwitches.cs
- XXXInfos.cs
- XmlWellformedWriterHelpers.cs
- EditorPart.cs
- PageCodeDomTreeGenerator.cs
- StandardToolWindows.cs
- FamilyMapCollection.cs
- TypeReference.cs
- AssociatedControlConverter.cs
- AxWrapperGen.cs
- CryptoKeySecurity.cs
- Trigger.cs
- TextStore.cs
- CapacityStreamGeometryContext.cs
- ErrorEventArgs.cs
- _BufferOffsetSize.cs
- FileStream.cs
- Binding.cs
- InstanceDescriptor.cs
- FormatterServicesNoSerializableCheck.cs
- DefaultValueConverter.cs
- ExpressionBuilderContext.cs
- AttributeUsageAttribute.cs
- SharedPerformanceCounter.cs
- EmissiveMaterial.cs
- RequestCacheValidator.cs
- CatalogZoneDesigner.cs
- TryExpression.cs
- TextRunTypographyProperties.cs
- EventLogQuery.cs
- CodeCompileUnit.cs
- CryptoApi.cs
- HwndTarget.cs
- DocumentSchemaValidator.cs
- Latin1Encoding.cs
- PasswordTextContainer.cs
- LogWriteRestartAreaState.cs
- altserialization.cs
- BitmapDownload.cs
- COAUTHINFO.cs
- WebPartConnectionCollection.cs
- DropShadowEffect.cs
- DataListItemEventArgs.cs
- CodeEntryPointMethod.cs
- EncoderParameter.cs
- NameValueFileSectionHandler.cs
- HotSpotCollection.cs
- SystemInformation.cs
- BookmarkTable.cs
- TextServicesManager.cs
- HtmlEmptyTagControlBuilder.cs
- EnumMemberAttribute.cs
- TextServicesContext.cs
- ControlUtil.cs
- RegexStringValidator.cs
- EdmTypeAttribute.cs
- InfoCardAsymmetricCrypto.cs
- SharedUtils.cs
- QueryStatement.cs
- GetResponse.cs
- FilterableAttribute.cs
- StructuralObject.cs
- DateTimeStorage.cs
- SafeCoTaskMem.cs
- ResourcesGenerator.cs
- DocumentPageTextView.cs
- RoleProviderPrincipal.cs
- XamlTreeBuilder.cs