Newer
Older
DNA / corlib / System.Runtime.InteropServices / DllImportAttribute.cs
@Chris Bacon Chris Bacon on 21 Jan 2012 613 bytes Fixed build issues
#if !LOCALTEST

namespace System.Runtime.InteropServices {

    [AttributeUsage(AttributeTargets.Method)]
	public class DllImportAttribute : Attribute {

		// Sync with C code
		private string dllName;
		public bool BestFitMapping;
		public CallingConvention CallingConvention;
		public CharSet CharSet;
		public string EntryPoint;
		public bool ExactSpelling;
		public bool PreserveSig;
		public bool SetLastError;
		public bool ThrowOnUnmappableChar;

		public DllImportAttribute(string dllName) {
			this.dllName = dllName;
		}

		public string Value {
			get {
				return this.dllName;
			}
		}

	}
}

#endif