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
- TargetConverter.cs
- StylusEditingBehavior.cs
- ToolStripDropDownItem.cs
- DetailsViewInsertEventArgs.cs
- TemplateContainer.cs
- PageRanges.cs
- GlyphShapingProperties.cs
- ProxyFragment.cs
- CollectionView.cs
- OutputCacheSettings.cs
- Lasso.cs
- TextModifier.cs
- DateTimeUtil.cs
- WpfWebRequestHelper.cs
- WebExceptionStatus.cs
- ClosableStream.cs
- HMACSHA512.cs
- Util.cs
- DataGridParentRows.cs
- EntityDataSource.cs
- StylesEditorDialog.cs
- NullableBoolConverter.cs
- ToolboxItemAttribute.cs
- COM2IProvidePropertyBuilderHandler.cs
- ToolStripOverflow.cs
- TextDecorationUnitValidation.cs
- HTTPNotFoundHandler.cs
- invalidudtexception.cs
- Int64Converter.cs
- PartialClassGenerationTaskInternal.cs
- DynamicValidatorEventArgs.cs
- ArgumentDirectionHelper.cs
- AsymmetricCryptoHandle.cs
- ParamArrayAttribute.cs
- WebBrowser.cs
- SHA256Managed.cs
- SynchronizationContext.cs
- NamespaceList.cs
- ServiceHostFactory.cs
- GridErrorDlg.cs
- SourceFilter.cs
- MaskedTextProvider.cs
- COM2IDispatchConverter.cs
- TagPrefixCollection.cs
- DataSourceProvider.cs
- EmissiveMaterial.cs
- Variant.cs
- QilStrConcatenator.cs
- DbConnectionStringBuilder.cs
- ContainerSelectorActiveEvent.cs
- CompositeDataBoundControl.cs
- RowSpanVector.cs
- Events.cs
- ExtendedProtectionPolicyTypeConverter.cs
- DataFormats.cs
- GB18030Encoding.cs
- SchemaLookupTable.cs
- InternalCache.cs
- NonVisualControlAttribute.cs
- AttachedAnnotation.cs
- SqlFormatter.cs
- FrameSecurityDescriptor.cs
- GeometryCombineModeValidation.cs
- AssociatedControlConverter.cs
- DrawingGroup.cs
- TagMapCollection.cs
- BlurBitmapEffect.cs
- OpenTypeLayout.cs
- OrderToken.cs
- Label.cs
- DataTable.cs
- SByteStorage.cs
- ObjectHelper.cs
- RepeaterCommandEventArgs.cs
- SimpleBitVector32.cs
- ConfigurationElementProperty.cs
- ReachDocumentPageSerializer.cs
- XmlWellformedWriter.cs
- ReadContentAsBinaryHelper.cs
- PrimarySelectionAdorner.cs
- WorkflowPrinting.cs
- ThreadWorkerController.cs
- ManagedIStream.cs
- JsonServiceDocumentSerializer.cs
- TimeIntervalCollection.cs
- ManagedCodeMarkers.cs
- ClassValidator.cs
- SQLByteStorage.cs
- EmptyStringExpandableObjectConverter.cs
- MailWebEventProvider.cs
- HtmlHead.cs
- RuntimeWrappedException.cs
- TextParagraphCache.cs
- ServiceRoute.cs
- HierarchicalDataBoundControl.cs
- ActionMismatchAddressingException.cs
- DrawingCollection.cs
- LightweightCodeGenerator.cs
- ExpressionCopier.cs
- uribuilder.cs