System.Runtime.InteropServices.UnmanagedFunctionPointerAttribute.BestFitMapping Field

Enables or disables best-fit mapping behavior when converting Unicode characters to ANSI characters.

Syntax

public bool BestFitMapping

Remarks

The UnmanagedFunctionPointerAttribute.BestFitMapping field is true by default, which means that best-fit mapping behavior is enabled. If the field is false, best-fit mapping is disabled. Settings for this field override any level settings for the System.Runtime.InteropServices.BestFitMappingAttribute attribute.

For more information, see DllImportAttribute.BestFitMapping.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0