39 lines
1.6 KiB
C#
39 lines
1.6 KiB
C#
using System;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>Controls whether Unicode characters are converted to the closest matching ANSI characters.</summary>
|
|
// Token: 0x020002F3 RID: 755
|
|
[ComVisible(true)]
|
|
[AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Interface, Inherited = false)]
|
|
public sealed class BestFitMappingAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Runtime.InteropServices.BestFitMappingAttribute" /> class set to the value of the <see cref="P:System.Runtime.InteropServices.BestFitMappingAttribute.BestFitMapping" /> property.</summary>
|
|
/// <param name="BestFitMapping">true to indicate that best-fit mapping is enabled; otherwise, false. The default is true. </param>
|
|
// Token: 0x060021C0 RID: 8640 RVA: 0x00078FFC File Offset: 0x000771FC
|
|
public BestFitMappingAttribute(bool BestFitMapping)
|
|
{
|
|
this.bfm = BestFitMapping;
|
|
}
|
|
|
|
/// <summary>Gets the best-fit mapping behavior when converting Unicode characters to ANSI characters.</summary>
|
|
/// <returns>true if best-fit mapping is enabled; otherwise, false. The default is true.</returns>
|
|
// Token: 0x1700063B RID: 1595
|
|
// (get) Token: 0x060021C1 RID: 8641 RVA: 0x0007900C File Offset: 0x0007720C
|
|
public bool BestFitMapping
|
|
{
|
|
get
|
|
{
|
|
return this.bfm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000CC7 RID: 3271
|
|
private bool bfm;
|
|
|
|
/// <summary>Enables or disables the throwing of an exception on an unmappable Unicode character that is converted to an ANSI '?' character.</summary>
|
|
// Token: 0x04000CC8 RID: 3272
|
|
public bool ThrowOnUnmappableChar;
|
|
}
|
|
}
|