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
- VirtualizingStackPanel.cs
- DataServiceQuery.cs
- ProgressBar.cs
- cookieexception.cs
- HttpRequest.cs
- ExtendedPropertyDescriptor.cs
- login.cs
- ConnectionPoint.cs
- SerializationEventsCache.cs
- HostVisual.cs
- FunctionMappingTranslator.cs
- XmlNamespaceMappingCollection.cs
- Delegate.cs
- BamlVersionHeader.cs
- IDReferencePropertyAttribute.cs
- XPathNavigator.cs
- GestureRecognitionResult.cs
- AutomationPeer.cs
- FormsAuthenticationTicket.cs
- ConnectionsZoneAutoFormat.cs
- ClientBuildManagerCallback.cs
- SystemTcpStatistics.cs
- Win32.cs
- FindCriteria11.cs
- HttpListenerResponse.cs
- GeometryGroup.cs
- SafeCryptoHandles.cs
- DrawingContext.cs
- CellConstant.cs
- LabelDesigner.cs
- EdmItemCollection.cs
- GeneralTransform3DGroup.cs
- InstanceOwnerException.cs
- WorkflowOwnershipException.cs
- ClosureBinding.cs
- StyleSelector.cs
- MobileUserControl.cs
- AuthenticationManager.cs
- ListViewDeleteEventArgs.cs
- OleAutBinder.cs
- LiteralControl.cs
- webproxy.cs
- PerformanceCountersElement.cs
- SimplePropertyEntry.cs
- EastAsianLunisolarCalendar.cs
- RtfToXamlReader.cs
- ManagedWndProcTracker.cs
- FusionWrap.cs
- Stopwatch.cs
- HttpModuleAction.cs
- XmlSchemaAll.cs
- DynamicMethod.cs
- PropertyItemInternal.cs
- OleDbParameterCollection.cs
- AccessDataSource.cs
- DbConnectionPoolGroup.cs
- Calendar.cs
- CacheForPrimitiveTypes.cs
- WinFormsSpinner.cs
- DbProviderManifest.cs
- FileUtil.cs
- OleDbException.cs
- Int32Converter.cs
- Vector.cs
- ObjectConverter.cs
- BaseCollection.cs
- WebConfigurationHost.cs
- UserPreferenceChangedEventArgs.cs
- LiteralLink.cs
- WebProxyScriptElement.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- StoreItemCollection.Loader.cs
- PointValueSerializer.cs
- Queue.cs
- SchemaTableOptionalColumn.cs
- RequiredAttributeAttribute.cs
- ValueType.cs
- LateBoundBitmapDecoder.cs
- XmlLoader.cs
- Zone.cs
- XmlTextReaderImplHelpers.cs
- ListViewItem.cs
- TabletCollection.cs
- TimeSpanStorage.cs
- QilStrConcatenator.cs
- WebPartDescriptionCollection.cs
- _NetRes.cs
- ObjectViewListener.cs
- NullableDecimalMinMaxAggregationOperator.cs
- TextTreeUndo.cs
- NamespaceCollection.cs
- SecurityBindingElementImporter.cs
- DataPagerFieldCollection.cs
- Run.cs
- SecurityKeyUsage.cs
- LogicalTreeHelper.cs
- _ServiceNameStore.cs
- Single.cs
- CodeArrayIndexerExpression.cs
- Peer.cs