2008-12-08 Ivan N. Zlatev <contact@i-nz.net>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / ComDefaultInterfaceAttribute.cs
1 //
2 // System.Runtime.InteropServices.ComDefaultInterfaceAttribute
3 //
4 // Author:
5 //   Kazuki Oikawa  (kazuki@panicode.com)
6 //
7
8 #if NET_2_0
9
10 using System;
11
12 namespace System.Runtime.InteropServices
13 {
14         [AttributeUsage (AttributeTargets.Class, Inherited = false)]
15         [ComVisible (true)]
16         public sealed class ComDefaultInterfaceAttribute : Attribute
17         {
18                 Type _type;
19
20                 public ComDefaultInterfaceAttribute (Type defaultInterface)
21                 {
22                         _type = defaultInterface;
23                 }
24
25                 public Type Value { get { return _type; }}
26         }
27 }
28 #endif