Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ //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. // Copyright (c) Microsoft Corporation. All rights reserved.Retrieves the DisplayName text. ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CryptoKeySecurity.cs
- ModulesEntry.cs
- CountdownEvent.cs
- TextTreeTextNode.cs
- ExecutionTracker.cs
- QueryConverter.cs
- TableCellAutomationPeer.cs
- COSERVERINFO.cs
- bindurihelper.cs
- CqlParser.cs
- PageTheme.cs
- SafeBitVector32.cs
- DataColumnMappingCollection.cs
- AnonymousIdentificationModule.cs
- Vector.cs
- NativeMethods.cs
- CheckoutException.cs
- MouseButton.cs
- SqlDataSourceView.cs
- SafePointer.cs
- _NativeSSPI.cs
- CFStream.cs
- TableDesigner.cs
- Brush.cs
- TextServicesPropertyRanges.cs
- PropertyRecord.cs
- AccessDataSource.cs
- DataGridTableCollection.cs
- CheckBoxField.cs
- FlowLayout.cs
- ValueType.cs
- ClipboardData.cs
- DecimalAverageAggregationOperator.cs
- IconHelper.cs
- NativeMethods.cs
- CompoundFileIOPermission.cs
- CookielessHelper.cs
- ColorMatrix.cs
- PeerServiceMessageContracts.cs
- BindingSource.cs
- ToolStripDropDownItem.cs
- XPathNodePointer.cs
- XmlElementAttributes.cs
- AutomationElement.cs
- TextCompositionEventArgs.cs
- DomNameTable.cs
- WindowPatternIdentifiers.cs
- ExpanderAutomationPeer.cs
- DataServiceExpressionVisitor.cs
- StateElement.cs
- InternalEnumValidatorAttribute.cs
- FormViewUpdateEventArgs.cs
- PathSegment.cs
- CachedBitmap.cs
- CompiledELinqQueryState.cs
- BindingGroup.cs
- DisplayMemberTemplateSelector.cs
- AtlasWeb.Designer.cs
- HitTestDrawingContextWalker.cs
- Crc32Helper.cs
- DependencyPropertyChangedEventArgs.cs
- ToggleProviderWrapper.cs
- ListControlBuilder.cs
- Trace.cs
- StreamFormatter.cs
- BaseTypeViewSchema.cs
- HttpHeaderCollection.cs
- LZCodec.cs
- Stack.cs
- EntityException.cs
- UpdatePanelTrigger.cs
- HtmlElementErrorEventArgs.cs
- GridViewDeletedEventArgs.cs
- DoubleAnimationClockResource.cs
- XmlCharType.cs
- DataColumnPropertyDescriptor.cs
- FakeModelPropertyImpl.cs
- SqlMetaData.cs
- AnnotationDocumentPaginator.cs
- TypeDependencyAttribute.cs
- DbParameterCollectionHelper.cs
- VoiceObjectToken.cs
- SqlDataSourceCommandEventArgs.cs
- SID.cs
- GiveFeedbackEvent.cs
- XmlImplementation.cs
- XmlAnyElementAttribute.cs
- Rotation3DKeyFrameCollection.cs
- Vector3DAnimation.cs
- ToolBarTray.cs
- StylusLogic.cs
- XamlBrushSerializer.cs
- SystemIcmpV4Statistics.cs
- BezierSegment.cs
- RecordBuilder.cs
- TemplateField.cs
- Ipv6Element.cs
- SettingsPropertyCollection.cs
- BitmapImage.cs
- CultureTable.cs