2003-10-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / System.Web / System.Web / WebSysDescriptionAttribute.cs
1 //
2 // System.Web.WebSysDescriptionAttribute.cs
3 //
4 // Authors:
5 //   Gaurav Vaish (gvaish@iitk.ac.in)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 //
8 // (C) Gaurav Vaish (2002)
9 // (C) 2003 Andreas Nahr
10 //
11
12 using System;
13 using System.ComponentModel;
14
15 namespace System.Web
16 {
17         [AttributeUsage(AttributeTargets.All)]
18         internal class WebSysDescriptionAttribute : DescriptionAttribute
19         {
20                 private bool isReplaced = false;
21
22                 public WebSysDescriptionAttribute (string description)
23                         : base (description)
24                 {
25                 }
26
27                 public override string Description {
28                         get {
29                                 if (!isReplaced) {
30                                         isReplaced = true;
31                                         DescriptionValue = Locale.GetText (DescriptionValue);
32                                 }
33                                 return DescriptionValue;
34                         }
35                 }
36         }
37 }