2 // System.Runtime.InteropServices.ComVisible.cs
5 // Nick Drochak (ndrochak@gol.com)
7 // (C) 2002 Nick Drochak
12 namespace System
.Windows
.Forms
{
14 [AttributeUsage(AttributeTargets
.Assembly
| AttributeTargets
.Class
15 | AttributeTargets
.Struct
| AttributeTargets
.Enum
|
16 AttributeTargets
.Method
| AttributeTargets
.Property
|
17 AttributeTargets
.Field
| AttributeTargets
.Interface
|
18 AttributeTargets
.Delegate
)]
19 public sealed class ComVisibleAttribute
: Attribute
{
21 private bool Visible
= false;
22 public ComVisibleAttribute(bool value) {Visible = value;}
23 public bool Value { get {return Visible;}
}