2002-02-26 Duncan Mak <duncan@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / InterfaceTypeAttribute.cs
1 //\r
2 // System.Runtime.InteropServices.InterfaceTypeAttribute.cs\r
3 //\r
4 // Author:\r
5 //   Kevin Winchester (kwin@ns.sympatico.ca)\r
6 //\r
7 // (C) 2002 Kevin Winchester\r
8 //\r
9 \r
10 namespace System.Runtime.InteropServices {\r
11 \r
12         [AttributeUsage(AttributeTargets.Interface)]\r
13         public sealed class InterfaceTypeAttribute : Attribute {\r
14                 \r
15                 private ComInterfaceType intType;\r
16                 \r
17                 public InterfaceTypeAttribute (ComInterfaceType interfaceType){\r
18                         intType = interfaceType;\r
19                 }\r
20 \r
21                 public InterfaceTypeAttribute (short interfaceType) {\r
22                         intType = (ComInterfaceType)interfaceType;\r
23                 }\r
24                 \r
25                 public ComInterfaceType Value {\r
26                         get {return intType;}\r
27                 }\r
28         }\r
29 }\r