2003-04-26 Gonzalo Paniagua Javier <gonzalo@ximian.com>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / ComEventInterfaceAttribute.cs
1 //
2 // System.Runtime.InteropServices.ComEventInterfaceAttribute.cs
3 //
4 // Name: Duncan Mak  (duncan@ximian.com)
5 //
6 // (C) Ximian, Inc.
7 //
8
9 using System;
10
11 namespace System.Runtime.InteropServices {
12
13         [AttributeUsage (AttributeTargets.Interface)]
14         public sealed class ComEventInterfaceAttribute : Attribute
15         {
16                 Type si, ep;
17                 
18                 public ComEventInterfaceAttribute (Type SourceInterface,
19                                                    Type EventProvider)
20                 {
21                         si = SourceInterface;
22                         ep = EventProvider;
23                 }
24
25                 public Type EventProvider {
26                         get { return ep; }
27                 }
28
29                 public Type SourceInterface {
30                         get { return si; }
31                 }
32         }
33 }
34