2004-01-30 Zoltan Varga <vargaz@freemail.hu>
[mono.git] / mcs / class / corlib / System.Runtime.InteropServices / DllImportAttribute.cs
1 //
2 // System.Runtime.InteropServices.DllImportAttribute.cs
3 //
4 // Author:
5 //   Paolo Molaro (lupus@ximian.com)
6 //
7 // (C) 2001 Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System;
11
12
13 namespace System.Runtime.InteropServices {
14
15         [AttributeUsage (AttributeTargets.Method)]
16         public sealed class DllImportAttribute: Attribute {
17                 public CallingConvention CallingConvention;
18                 public CharSet CharSet;
19                 public string EntryPoint;
20                 public bool ExactSpelling;
21                 public bool PreserveSig;
22                 public bool SetLastError;
23
24 #if (NET_1_1)
25
26                 public bool BestFitMapping;
27                 public bool ThrowOnUnmappableChar;
28
29 #endif
30
31                 private string Dll;
32                 
33                 public string Value {
34                         get {return Dll;}
35                 }
36                 
37                 public DllImportAttribute (string dllName) {
38                         Dll = dllName;
39                 }
40         }
41 }