Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / WebSysDisplayNameAttribute.cs / 1305376 / 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
- MetadataPropertyCollection.cs
- Restrictions.cs
- EnumerableRowCollectionExtensions.cs
- SecurityContext.cs
- SqlResolver.cs
- ExpressionWriter.cs
- Constraint.cs
- PropertyChangeTracker.cs
- connectionpool.cs
- XmlReaderSettings.cs
- NavigatorInput.cs
- StylusCollection.cs
- DataGridTable.cs
- SqlTriggerAttribute.cs
- InvalidAsynchronousStateException.cs
- IdentityNotMappedException.cs
- SecurityHelper.cs
- RegexCharClass.cs
- AppDomainCompilerProxy.cs
- ProtocolViolationException.cs
- ThreadStateException.cs
- WarningException.cs
- DataError.cs
- WebScriptMetadataMessageEncodingBindingElement.cs
- SessionStateModule.cs
- RadioButton.cs
- TripleDESCryptoServiceProvider.cs
- Message.cs
- DynamicRouteExpression.cs
- MatrixTransform.cs
- EventBookmark.cs
- ThreadStartException.cs
- DataSourceUtil.cs
- AssociationEndMember.cs
- Delegate.cs
- RegistrySecurity.cs
- SetMemberBinder.cs
- Globals.cs
- ImmComposition.cs
- PrincipalPermission.cs
- GrammarBuilderWildcard.cs
- Win32.cs
- SqlRewriteScalarSubqueries.cs
- IgnoreDeviceFilterElementCollection.cs
- Single.cs
- MatrixUtil.cs
- ClientRolePrincipal.cs
- DrawListViewItemEventArgs.cs
- KeyValueConfigurationCollection.cs
- DesignerView.Commands.cs
- SimpleBitVector32.cs
- TextServicesProperty.cs
- DrawingContextDrawingContextWalker.cs
- DesignerUtils.cs
- EngineSite.cs
- XmlWellformedWriter.cs
- PlainXmlWriter.cs
- UniqueIdentifierService.cs
- ISAPIApplicationHost.cs
- ListCommandEventArgs.cs
- SignedPkcs7.cs
- URLString.cs
- CellIdBoolean.cs
- _ProxyChain.cs
- GetPageNumberCompletedEventArgs.cs
- ActiveXHost.cs
- CookieProtection.cs
- PartManifestEntry.cs
- NativeMethods.cs
- HostProtectionException.cs
- TreeViewEvent.cs
- PolygonHotSpot.cs
- Line.cs
- WindowsSpinner.cs
- DictionaryItemsCollection.cs
- UndirectedGraph.cs
- WindowsFormsHelpers.cs
- HebrewCalendar.cs
- HttpResponse.cs
- StorageTypeMapping.cs
- Adorner.cs
- PassportIdentity.cs
- RemotingException.cs
- DataTransferEventArgs.cs
- DefaultHttpHandler.cs
- CodeCompileUnit.cs
- ResourceAssociationType.cs
- KeyGesture.cs
- SrgsSubset.cs
- HostAdapter.cs
- Compilation.cs
- DynamicResourceExtension.cs
- Material.cs
- UpdatePanelControlTrigger.cs
- AppDomainEvidenceFactory.cs
- TrackBar.cs
- DataGridRowHeaderAutomationPeer.cs
- shaperfactoryquerycachekey.cs
- ResourceExpressionBuilder.cs
- TransformConverter.cs