Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ResizeGrip.cs
- TrackingServices.cs
- LogicalTreeHelper.cs
- EmptyEnumerable.cs
- SplitterEvent.cs
- DesignerAttribute.cs
- ProxyWebPart.cs
- ContextToken.cs
- ReverseInheritProperty.cs
- ObjectComplexPropertyMapping.cs
- PolicyStatement.cs
- DefaultTypeArgumentAttribute.cs
- CapabilitiesSection.cs
- DATA_BLOB.cs
- NotFiniteNumberException.cs
- RelatedImageListAttribute.cs
- ConsumerConnectionPoint.cs
- BitStack.cs
- SecurityTokenValidationException.cs
- SafeRsaProviderHandle.cs
- InputElement.cs
- XmlReflectionMember.cs
- ByValueEqualityComparer.cs
- LogSwitch.cs
- Rect3D.cs
- FormViewDeletedEventArgs.cs
- IERequestCache.cs
- SQLDoubleStorage.cs
- CardSpacePolicyElement.cs
- CreateUserErrorEventArgs.cs
- AccessViolationException.cs
- DBAsyncResult.cs
- GraphicsContext.cs
- SqlStream.cs
- Debug.cs
- DataBoundControlHelper.cs
- InkCanvas.cs
- AnnotationResourceCollection.cs
- AffineTransform3D.cs
- AdPostCacheSubstitution.cs
- HttpResponseHeader.cs
- SafeMemoryMappedViewHandle.cs
- _RequestCacheProtocol.cs
- Descriptor.cs
- ControlParameter.cs
- Object.cs
- SqlConnectionPoolProviderInfo.cs
- FormViewModeEventArgs.cs
- ControlParameter.cs
- SemaphoreFullException.cs
- LinqTreeNodeEvaluator.cs
- ForeignKeyConstraint.cs
- HyperLinkColumn.cs
- X509Utils.cs
- TypeDescriptorContext.cs
- Knowncolors.cs
- RectangleGeometry.cs
- ClientFormsAuthenticationMembershipProvider.cs
- UIElement.cs
- BinaryOperationBinder.cs
- AQNBuilder.cs
- ToolboxItemLoader.cs
- QilTypeChecker.cs
- MessageProtectionOrder.cs
- SymmetricKey.cs
- XmlSerializer.cs
- HtmlInputHidden.cs
- ProfilePropertySettings.cs
- ADMembershipProvider.cs
- MemoryFailPoint.cs
- GroupBoxAutomationPeer.cs
- BamlTreeNode.cs
- XmlSchemaAttributeGroupRef.cs
- DEREncoding.cs
- TextRangeSerialization.cs
- AmbiguousMatchException.cs
- Point.cs
- XmlSerializationWriter.cs
- CodeAccessPermission.cs
- NamespaceList.cs
- TableLayoutStyle.cs
- NameValueFileSectionHandler.cs
- DBSchemaRow.cs
- TTSEngineTypes.cs
- CodeDelegateInvokeExpression.cs
- ButtonStandardAdapter.cs
- ReferencedAssembly.cs
- XamlSerializerUtil.cs
- TagPrefixAttribute.cs
- DataStreams.cs
- RoutedEventValueSerializer.cs
- StylusShape.cs
- StringPropertyBuilder.cs
- SoundPlayerAction.cs
- ACE.cs
- SslStream.cs
- ObjectViewFactory.cs
- ExecutionEngineException.cs
- AsyncResult.cs
- NamedPipeChannelFactory.cs