2003-08-06 Andreas Nahr <ClassDevelopment@A-SoftTech.com>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / DispIdAttribute.cs
1 //
2 // System.Runtime.InteropServices.DispIdAttribute.cs
3 //
4 // Name: Duncan Mak  (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc.
7
8 namespace System.Runtime.InteropServices {
9
10         [AttributeUsage (AttributeTargets.Method | AttributeTargets.Property |
11                          AttributeTargets.Field | AttributeTargets.Event)]
12         public sealed class DispIdAttribute : Attribute
13         {
14                 int id;
15                 
16                 public DispIdAttribute (int dispId)
17                 {
18                         id = dispId;
19                 }
20
21                 public int Value {
22                         get { return id; }
23                 }
24         }
25 }