* DiagnosticsConfigurationHandler.cs: If initializeData is provided, use the
[mono.git] / mcs / class / System / System / SRDescriptionAttribute.cs
1 //
2 // System.Diagnostics.SRDescriptionAttribute.cs
3 //
4 // Authors:
5 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
6 //
7 // (C) 2003 Andreas Nahr
8 //
9
10 using System;
11 using System.ComponentModel;
12
13 namespace System
14 {
15         [AttributeUsage(AttributeTargets.All)]
16         internal class SRDescriptionAttribute : DescriptionAttribute
17         {
18                 private bool isReplaced = false;
19
20                 public SRDescriptionAttribute (string description)
21                         : base (description)
22                 {
23                 }
24
25                 public override string Description {
26                         get {
27                                 if (!isReplaced) {
28                                         isReplaced = true;
29                                         DescriptionValue = Locale.GetText (DescriptionValue);
30                                 }
31                                 return DescriptionValue;
32                         }
33                 }
34         }
35 }