using System; namespace System.Runtime.InteropServices { /// Controls the marshaling behavior of a delegate signature passed as an unmanaged function pointer to or from unmanaged code. This class cannot be inherited. // Token: 0x02000361 RID: 865 [ComVisible(true)] [AttributeUsage(AttributeTargets.Delegate, Inherited = false, AllowMultiple = false)] public sealed class UnmanagedFunctionPointerAttribute : Attribute { /// Initializes a new instance of the class with the specified calling convention. /// The specified calling convention. // Token: 0x060023AA RID: 9130 RVA: 0x0007AB60 File Offset: 0x00078D60 public UnmanagedFunctionPointerAttribute(CallingConvention callingConvention) { this.call_conv = callingConvention; } /// Gets the value of the calling convention. /// The value of the calling convention specified by the constructor. // Token: 0x17000662 RID: 1634 // (get) Token: 0x060023AB RID: 9131 RVA: 0x0007AB70 File Offset: 0x00078D70 public CallingConvention CallingConvention { get { return this.call_conv; } } // Token: 0x04000E26 RID: 3622 private CallingConvention call_conv; /// Indicates how to marshal string parameters to the method, and controls name mangling. // Token: 0x04000E27 RID: 3623 public CharSet CharSet; /// Indicates whether the callee calls the SetLastError Win32 API function before returning from the attributed method. // Token: 0x04000E28 RID: 3624 public bool SetLastError; /// Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters. // Token: 0x04000E29 RID: 3625 public bool BestFitMapping; /// Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI "?" character. // Token: 0x04000E2A RID: 3626 public bool ThrowOnUnmappableChar; } }