Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ComEventInterfaceAttribute.cs « System.Runtime.InteropServices « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f03e371c898e12d182b05c098ada0723d182ac66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// System.Runtime.InteropServices.ComEventInterfaceAttribute.cs
//
// Name: Duncan Mak  (duncan@ximian.com)
//
// (C) Ximian, Inc.
//

using System;

namespace System.Runtime.InteropServices {

	[AttributeUsage (AttributeTargets.Interface)]
	public sealed class ComEventInterfaceAttribute : Attribute
	{
		Type si, ep;
		
		public ComEventInterfaceAttribute (Type SourceInterface,
						   Type EventProvider)
		{
			si = SourceInterface;
			ep = EventProvider;
		}

		public Type EventProvider {
			get { return ep; }
		}

		public Type SourceInterface {
			get { return si; }
		}
	}
}