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
- HtmlPhoneCallAdapter.cs
- TriggerBase.cs
- CodeCompiler.cs
- AccessDataSourceDesigner.cs
- EditorPartCollection.cs
- QilTypeChecker.cs
- WebSysDefaultValueAttribute.cs
- XmlSerializerFactory.cs
- TextTreeInsertUndoUnit.cs
- CodeParameterDeclarationExpression.cs
- DataException.cs
- TextSelectionHelper.cs
- XmlAttributeOverrides.cs
- Menu.cs
- AnonymousIdentificationModule.cs
- GroupQuery.cs
- PersianCalendar.cs
- StringStorage.cs
- RadioButtonList.cs
- ProjectionAnalyzer.cs
- ServiceHttpModule.cs
- Odbc32.cs
- ZoneButton.cs
- WindowShowOrOpenTracker.cs
- SkinBuilder.cs
- CngKeyBlobFormat.cs
- DataBoundLiteralControl.cs
- PointIndependentAnimationStorage.cs
- SafeFileMappingHandle.cs
- SQLGuidStorage.cs
- CommandLineParser.cs
- sqlpipe.cs
- CustomTrackingRecord.cs
- DelegateBodyWriter.cs
- SubMenuStyle.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- XamlStyleSerializer.cs
- FontFamilyValueSerializer.cs
- XmlBindingWorker.cs
- Lease.cs
- QuestionEventArgs.cs
- StorageEntityTypeMapping.cs
- ScriptControlManager.cs
- ProtocolElementCollection.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- FunctionQuery.cs
- messageonlyhwndwrapper.cs
- RoleGroup.cs
- Event.cs
- RequestContextBase.cs
- GridViewColumnCollectionChangedEventArgs.cs
- JsonSerializer.cs
- DataGridColumnHeaderCollection.cs
- CalendarSelectionChangedEventArgs.cs
- SubstitutionResponseElement.cs
- FilteredReadOnlyMetadataCollection.cs
- TraceLevelHelper.cs
- RegexGroup.cs
- NullableLongMinMaxAggregationOperator.cs
- ConfigurationManager.cs
- TemplateControlBuildProvider.cs
- TraceHandlerErrorFormatter.cs
- WindowsRichEditRange.cs
- RootCodeDomSerializer.cs
- NonDualMessageSecurityOverHttp.cs
- MatrixTransform.cs
- WebPartTracker.cs
- ManipulationPivot.cs
- SelectionProviderWrapper.cs
- mactripleDES.cs
- DrawingServices.cs
- TrustManager.cs
- _Semaphore.cs
- ThousandthOfEmRealPoints.cs
- BaseUriHelper.cs
- Bezier.cs
- SQLBytesStorage.cs
- WebPartEditorCancelVerb.cs
- TimerEventSubscription.cs
- BitmapFrame.cs
- DBCSCodePageEncoding.cs
- OleDbError.cs
- TreeViewImageIndexConverter.cs
- GridSplitterAutomationPeer.cs
- SynchronizedInputProviderWrapper.cs
- WebPartVerb.cs
- ModelItemImpl.cs
- WebPartConnectionsConnectVerb.cs
- ResourceReferenceExpressionConverter.cs
- CodeNamespaceCollection.cs
- DataGridColumnReorderingEventArgs.cs
- OdbcConnection.cs
- FormViewCommandEventArgs.cs
- unitconverter.cs
- SectionInput.cs
- ApplicationHost.cs
- ZoomPercentageConverter.cs
- xdrvalidator.cs
- EntityCommandCompilationException.cs
- CodeDomDecompiler.cs