Code:
/ DotNET / DotNET / 8.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
- InProcStateClientManager.cs
- DataGridDetailsPresenter.cs
- MergeLocalizationDirectives.cs
- SchemaElement.cs
- MouseBinding.cs
- SmtpException.cs
- EngineSiteSapi.cs
- DbConnectionInternal.cs
- XmlSerializationGeneratedCode.cs
- ListViewUpdatedEventArgs.cs
- ToolCreatedEventArgs.cs
- DateRangeEvent.cs
- _Events.cs
- Int32CollectionValueSerializer.cs
- SHA384.cs
- SystemIPGlobalStatistics.cs
- HttpProcessUtility.cs
- Translator.cs
- ExpandSegmentCollection.cs
- ThrowHelper.cs
- BridgeDataRecord.cs
- StorageMappingFragment.cs
- SetterBase.cs
- ImageList.cs
- ColorMap.cs
- PolicyImporterElementCollection.cs
- SqlConnectionManager.cs
- InstanceNotFoundException.cs
- TextDocumentView.cs
- GridProviderWrapper.cs
- TlsnegoTokenProvider.cs
- LabelExpression.cs
- DataRecord.cs
- XmlIgnoreAttribute.cs
- ColumnCollection.cs
- BevelBitmapEffect.cs
- CustomAttributeSerializer.cs
- Logging.cs
- IBuiltInEvidence.cs
- DataGridViewColumnHeaderCell.cs
- SoapInteropTypes.cs
- Int32Storage.cs
- EFTableProvider.cs
- COM2FontConverter.cs
- DataGridItemAttachedStorage.cs
- safex509handles.cs
- RequestNavigateEventArgs.cs
- ItemContainerGenerator.cs
- TextTreeUndo.cs
- GregorianCalendarHelper.cs
- ItemsPanelTemplate.cs
- listitem.cs
- SettingsProperty.cs
- LogEntrySerializer.cs
- SessionParameter.cs
- Vector3DIndependentAnimationStorage.cs
- SpecialNameAttribute.cs
- WorkflowNamespace.cs
- SafeFileHandle.cs
- EntitySqlQueryBuilder.cs
- MachineKey.cs
- HttpListenerRequest.cs
- PerformanceCounterPermissionAttribute.cs
- TypeValidationEventArgs.cs
- ExtendedProtectionPolicyTypeConverter.cs
- PropertyInfoSet.cs
- BindingContext.cs
- SerializerWriterEventHandlers.cs
- ActionFrame.cs
- CollectionViewSource.cs
- XmlNotation.cs
- ParallelActivityDesigner.cs
- VirtualPath.cs
- FtpWebRequest.cs
- XmlReaderSettings.cs
- WeakReferenceEnumerator.cs
- dbenumerator.cs
- SqlTransaction.cs
- SoapClientMessage.cs
- AnnotationMap.cs
- GenericWebPart.cs
- DataControlFieldCollection.cs
- IISMapPath.cs
- ExpressionBuilder.cs
- TableAutomationPeer.cs
- TypeReference.cs
- BufferBuilder.cs
- CharUnicodeInfo.cs
- XmlExtensionFunction.cs
- SafeNativeMethods.cs
- HostingEnvironmentWrapper.cs
- PasswordBoxAutomationPeer.cs
- Int32Animation.cs
- RulePatternOps.cs
- SizeFConverter.cs
- DataGridViewImageCell.cs
- Vector3D.cs
- MatrixValueSerializer.cs
- FunctionQuery.cs
- ExpressionContext.cs