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

ClassInterfaceAttribute.cs « System.Runtime.InteropServices « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 47aa4ebed9207bed928777c5e4e98bdf1f7edbe2 (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
//
// System.Runtime.InteropServices.ClassInterfaceAttribute.cs
//
// Author:
//   Nick Drochak (ndrochak@gol.com)
//
// (C) 2002 Nick Drochak
//

using System;

namespace System.Runtime.InteropServices {

	[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class)]
	public sealed class ClassInterfaceAttribute : Attribute {
		private ClassInterfaceType ciType;
		
		public ClassInterfaceAttribute ( short classInterfaceType ) {
			ciType = (ClassInterfaceType)classInterfaceType;
		}

		public ClassInterfaceAttribute ( ClassInterfaceType classInterfaceType ) {
			ciType = classInterfaceType;
		}

		public ClassInterfaceType Value {
			get {return ciType;}
		}
	}
}