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
- WSFederationHttpBindingCollectionElement.cs
- Selection.cs
- FileLogRecordHeader.cs
- TCEAdapterGenerator.cs
- Rules.cs
- Lazy.cs
- ToolStripItemRenderEventArgs.cs
- Activator.cs
- MemoryStream.cs
- DiagnosticsElement.cs
- PropertyRef.cs
- UpdateTracker.cs
- StaticResourceExtension.cs
- AuthorizationRuleCollection.cs
- PrintEvent.cs
- TiffBitmapEncoder.cs
- MailSettingsSection.cs
- CompatibleIComparer.cs
- ECDiffieHellmanCng.cs
- EditBehavior.cs
- SrgsElement.cs
- CodeVariableReferenceExpression.cs
- AudioLevelUpdatedEventArgs.cs
- GeneratedView.cs
- StringAnimationUsingKeyFrames.cs
- IriParsingElement.cs
- DataSourceSelectArguments.cs
- AutoGeneratedFieldProperties.cs
- ScrollProviderWrapper.cs
- PcmConverter.cs
- FontStyles.cs
- Profiler.cs
- GeneralTransform3DCollection.cs
- UnaryNode.cs
- DefaultPropertyAttribute.cs
- HttpException.cs
- SystemGatewayIPAddressInformation.cs
- Number.cs
- BaseTreeIterator.cs
- UpWmlMobileTextWriter.cs
- sqlmetadatafactory.cs
- ExtensionWindow.cs
- Point3DKeyFrameCollection.cs
- DocumentGrid.cs
- mediaclock.cs
- CommunicationObjectFaultedException.cs
- ResumeStoryboard.cs
- WeakEventTable.cs
- TextRunProperties.cs
- GridItem.cs
- TypeSystem.cs
- SystemDropShadowChrome.cs
- XPathSelectionIterator.cs
- TreePrinter.cs
- CircleHotSpot.cs
- PrinterResolution.cs
- Debug.cs
- ComponentDispatcher.cs
- StaticExtension.cs
- XmlAttributeOverrides.cs
- SchemaMapping.cs
- AssemblyAttributesGoHere.cs
- AuthenticationModulesSection.cs
- RegistrySecurity.cs
- Freezable.cs
- DateTimeFormat.cs
- SqlSupersetValidator.cs
- RequestCachePolicy.cs
- IdentityValidationException.cs
- SQLRoleProvider.cs
- ComplexTypeEmitter.cs
- HitTestFilterBehavior.cs
- DemultiplexingClientMessageFormatter.cs
- HtmlUtf8RawTextWriter.cs
- LicFileLicenseProvider.cs
- _Semaphore.cs
- NotFiniteNumberException.cs
- HtmlGenericControl.cs
- DataGridTablesFactory.cs
- LabelLiteral.cs
- FontClient.cs
- HttpValueCollection.cs
- ResolveNextArgumentWorkItem.cs
- Matrix3DStack.cs
- TaskHelper.cs
- MeshGeometry3D.cs
- MatrixAnimationBase.cs
- UniqueConstraint.cs
- DataBindingCollectionConverter.cs
- Html32TextWriter.cs
- WebPartConnectVerb.cs
- SchemaRegistration.cs
- ParsedAttributeCollection.cs
- LinearQuaternionKeyFrame.cs
- MultipleViewPattern.cs
- RuleSettingsCollection.cs
- BuilderPropertyEntry.cs
- DynamicRendererThreadManager.cs
- ServiceBehaviorElement.cs
- ImageClickEventArgs.cs