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

DllImportAttribute.cs « System.Runtime.InteropServices « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9d6466527eae830b52422a680dec640108a42a92 (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
//
// System.Runtime.InteropServices/DllImportAttribute.cs
//
// Author:
//   Paolo Molaro (lupus@ximian.com)
//
// (C) 2001 Ximian, Inc.  http://www.ximian.com
//

using System;


namespace System.Runtime.InteropServices {

	[AttributeUsage (AttributeTargets.Method)]
	public sealed class DllImportAttribute: Attribute {
		public CallingConvention CallingConvention;
		public CharSet CharSet;
		public string EntryPoint;
		public bool ExactSpelling;
		public bool PreserveSig;
		public bool SetLastError;
		private string Dll;
		
		public string Value {
			get {return Dll;}
		}
		
		public DllImportAttribute (string dllName) {
			Dll = dllName;
		}
	}
}