Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Designer / WinForms / System / WinForms / Design / SRDisplayNameAttribute.cs / 1 / SRDisplayNameAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All Rights Reserved. // Information Contained Herein is Proprietary and Confidential. // //----------------------------------------------------------------------------- namespace System.Windows.Forms.Design { using System; using System.ComponentModel; using System.Design; [AttributeUsage(AttributeTargets.Property | AttributeTargets.Event | AttributeTargets.Class | AttributeTargets.Method)] internal sealed class SRDisplayNameAttribute : DisplayNameAttribute { private bool replaced = false; ////// Constructs a new sys display name. /// /// /// description text. /// public SRDisplayNameAttribute(string displayName) : base(displayName) { } ////// Retrieves the description text. /// ////// description /// public override string DisplayName { get { if (!replaced) { replaced = true; DisplayNameValue = SR.GetString(base.DisplayName); } return base.DisplayName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ArrayWithOffset.cs
- MemoryPressure.cs
- RegistrySecurity.cs
- QilBinary.cs
- VersionValidator.cs
- InputMethodStateChangeEventArgs.cs
- HttpModuleCollection.cs
- ActivationWorker.cs
- Header.cs
- WebPartVerbsEventArgs.cs
- DataGridViewRowCollection.cs
- ErrorInfoXmlDocument.cs
- DisposableCollectionWrapper.cs
- WebPartPersonalization.cs
- TypeLoadException.cs
- SqlBulkCopyColumnMappingCollection.cs
- BuildProvider.cs
- OperationContractAttribute.cs
- XhtmlBasicLiteralTextAdapter.cs
- RbTree.cs
- AmbientLight.cs
- InfoCardSymmetricAlgorithm.cs
- DataContractSerializerSection.cs
- EventProviderTraceListener.cs
- Cursor.cs
- GroupBox.cs
- QilCloneVisitor.cs
- XmlNamespaceMappingCollection.cs
- CachedFontFamily.cs
- HtmlInputText.cs
- CreateRefExpr.cs
- CombinedGeometry.cs
- QueryProcessor.cs
- OleTxTransaction.cs
- FontFamilyConverter.cs
- ReadOnlyDataSourceView.cs
- OleDbCommand.cs
- Visual3D.cs
- SHA512.cs
- ellipse.cs
- NamedElement.cs
- ProfileEventArgs.cs
- StylusDevice.cs
- ItemList.cs
- BamlLocalizer.cs
- SortKey.cs
- ComponentGuaranteesAttribute.cs
- Membership.cs
- SqlTransaction.cs
- XmlLinkedNode.cs
- UnionCodeGroup.cs
- TreeNodeCollectionEditor.cs
- ObjectTag.cs
- DataGridViewRowPostPaintEventArgs.cs
- WorkflowValidationFailedException.cs
- KeyValuePairs.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- serverconfig.cs
- XmlValidatingReaderImpl.cs
- BitmapCodecInfo.cs
- InitializeCorrelation.cs
- PagedDataSource.cs
- LinkLabel.cs
- ServiceInfo.cs
- EvidenceBase.cs
- RolePrincipal.cs
- PriorityQueue.cs
- DataGridViewComboBoxColumn.cs
- ScrollItemProviderWrapper.cs
- AccessibleObject.cs
- ResourceCollectionInfo.cs
- DoWorkEventArgs.cs
- SchemaComplexType.cs
- RenderData.cs
- ImageEditor.cs
- IChannel.cs
- GradientBrush.cs
- _CookieModule.cs
- MenuCommand.cs
- QuaternionRotation3D.cs
- VisualTarget.cs
- CodeSubDirectoriesCollection.cs
- DbCommandTree.cs
- ValidationResult.cs
- GeometryDrawing.cs
- RegistrationContext.cs
- ResourceContainer.cs
- JsonClassDataContract.cs
- CompilerResults.cs
- AliasedSlot.cs
- ClientRolePrincipal.cs
- Utilities.cs
- GlyphRunDrawing.cs
- WorkflowDesignerColors.cs
- PackWebResponse.cs
- UpdatePanelControlTrigger.cs
- TextTreeDeleteContentUndoUnit.cs
- DataServiceResponse.cs
- WindowsListViewItemCheckBox.cs
- ItemAutomationPeer.cs