System.Runtime.InteropServices.BestFitMappingAttribute.BestFitMapping Property

Gets the best-fit mapping behavior when converting Unicode characters to ANSI characters.

Syntax

public bool BestFitMapping { get; }

Value

Documentation for this section has not yet been entered.

Remarks

If best-fit mapping is false and BestFitMappingAttribute.ThrowOnUnmappableChar is true, all Unicode characters that require conversion to ANSI format will generate an exception when passed to unmanaged code. Some characters are unmappable, even when best-fit mapping is true. Some characters lack a best-fit representation; these characters are called unmappable. Unmappable characters are usually converted to the default '?' ANSI character.

Note:

Certain Unicode characters are converted to dangerous characters, such as the backslash '\' character, which can inadvertently change a path.

Requirements

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