Files
Dec2017-Script-Dump/mscorlib/System/Runtime/InteropServices/LayoutKind.cs
T
2026-06-04 11:42:34 +02:00

22 lines
1.2 KiB
C#

using System;
namespace System.Runtime.InteropServices
{
/// <summary>Controls the layout of an object when exported to unmanaged code.</summary>
// Token: 0x0200032E RID: 814
[ComVisible(true)]
[Serializable]
public enum LayoutKind
{
/// <summary>The members of the object are laid out sequentially, in the order in which they appear when exported to unmanaged memory. The members are laid out according to the packing specified in <see cref="F:System.Runtime.InteropServices.StructLayoutAttribute.Pack" />, and can be noncontiguous.</summary>
// Token: 0x04000D69 RID: 3433
Sequential,
/// <summary>The precise position of each member of an object in unmanaged memory is explicitly controlled. Each member must use the <see cref="T:System.Runtime.InteropServices.FieldOffsetAttribute" /> to indicate the position of that field within the type.</summary>
// Token: 0x04000D6A RID: 3434
Explicit = 2,
/// <summary>The runtime automatically chooses an appropriate layout for the members of an object in unmanaged memory. Objects defined with this enumeration member cannot be exposed outside of managed code. Attempting to do so generates an exception.</summary>
// Token: 0x04000D6B RID: 3435
Auto
}
}