2002-03-24 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / ClassInterfaceAttribute.cs
1 //
2 // System.Runtime.InteropServices.ClassInterfaceAttribute.cs
3 //
4 // Author:
5 //   Nick Drochak (ndrochak@gol.com)
6 //
7 // (C) 2002 Nick Drochak
8 //
9
10 using System;
11
12 namespace System.Runtime.InteropServices {
13
14         [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class)]
15         public sealed class ClassInterfaceAttribute : Attribute {
16                 private ClassInterfaceType ciType;
17                 
18                 public ClassInterfaceAttribute ( short classInterfaceType ) {
19                         ciType = (ClassInterfaceType)classInterfaceType;
20                 }
21
22                 public ClassInterfaceAttribute ( ClassInterfaceType classInterfaceType ) {
23                         ciType = classInterfaceType;
24                 }
25
26                 public ClassInterfaceType Value {
27                         get {return ciType;}
28                 }
29         }
30 }