OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / interop / DisplayStringAttribute.cs
1 // --------------------------------------------------------------------------------------------------------------------\r
2 // <copyright file="DisplayStringAttribute.cs" company="HandBrake Project (http://handbrake.fr)">\r
3 //   This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.\r
4 // </copyright>\r
5 // <summary>\r
6 //   Defines the DisplayStringAttribute type.\r
7 // </summary>\r
8 // --------------------------------------------------------------------------------------------------------------------\r
9 \r
10 namespace HandBrake.Interop\r
11 {\r
12     using System;\r
13 \r
14     [AttributeUsage(AttributeTargets.Field)]\r
15     public sealed class DisplayStringAttribute : Attribute\r
16     {\r
17         private readonly string value;\r
18 \r
19         public string Value\r
20         {\r
21             get { return value; }\r
22         }\r
23 \r
24         public string ResourceKey { get; set; }\r
25 \r
26         public DisplayStringAttribute(string v)\r
27         {\r
28             this.value = v;\r
29         }\r
30 \r
31         public DisplayStringAttribute()\r
32         {\r
33         }\r
34     }\r
35 }\r