2002-01-24 Miguel de Icaza <miguel@ximian.com>
[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                 private string Dll;
24                 
25                 public string Value {
26                         get {return Dll;}
27                 }
28                 
29                 public DllImportAttribute (string dllName) {
30                         Dll = dllName;
31                 }
32         }
33 }