// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Runtime.InteropServices { [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct, Inherited = false)] public sealed class StructLayoutAttribute : Attribute { public StructLayoutAttribute(LayoutKind layoutKind) { Value = layoutKind; } public StructLayoutAttribute(short layoutKind) { Value = (LayoutKind)layoutKind; } public LayoutKind Value { get; } public int Pack; public int Size; public CharSet CharSet; } } |