﻿<?xml version="1.0" encoding="utf-8"?><Type Name="LayoutKind" FullName="System.Runtime.InteropServices.LayoutKind" FullNameSP="System_Runtime_InteropServices_LayoutKind" Maintainer="ecma"><TypeSignature Language="ILASM" Value=".class public sealed serializable LayoutKind extends System.Enum" /><TypeSignature Language="C#" Value="public enum LayoutKind" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable sealed LayoutKind extends System.Enum" /><MemberOfLibrary>RuntimeInfrastructure</MemberOfLibrary><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Enum</BaseTypeName></Base><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This enumeration is used with <see cref="T:System.Runtime.InteropServices.StructLayoutAttribute" />. The common language runtime uses the Auto layout value by default. To reduce layout-related problems associated with the Auto value, C#, Visual Basic, and C++ compilers specify Sequential layout for value types.</para><block subset="none" type="note"><para>The <see cref="F:System.Runtime.InteropServices.StructLayoutAttribute.Pack" /> field controls the alignment of data fields, and thus affects the layout regardless of the <see cref="T:System.Runtime.InteropServices.LayoutKind" /> value you specify. By default, the value of <see cref="F:System.Runtime.InteropServices.StructLayoutAttribute.Pack" /> is 0, which indicates the default packing size for the current platform. For example, when you use the Explicit layout value and specify field alignments on byte boundaries, you must set <see cref="F:System.Runtime.InteropServices.StructLayoutAttribute.Pack" /> to 1 to get the desired result. </para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Controls the layout of an object when exported to unmanaged code.</para></summary></Docs><Members><Member MemberName="Auto"><MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Runtime.InteropServices.LayoutKind Auto = 3" /><MemberSignature Language="C#" Value="Auto" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Runtime.InteropServices.LayoutKind Auto = int32(3)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Runtime.InteropServices.LayoutKind</ReturnType></ReturnValue><Parameters /><MemberValue>Auto</MemberValue><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>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.</para></summary></Docs><Excluded>0</Excluded></Member><Member MemberName="Explicit"><MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Runtime.InteropServices.LayoutKind Explicit = 2" /><MemberSignature Language="C#" Value="Explicit" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Runtime.InteropServices.LayoutKind Explicit = int32(2)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Runtime.InteropServices.LayoutKind</ReturnType></ReturnValue><Parameters /><MemberValue>Explicit</MemberValue><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>The precise position of each member of an object in unmanaged memory is explicitly controlled, subject to the setting of the <see cref="F:System.Runtime.InteropServices.StructLayoutAttribute.Pack" /> field. Each member must use the <see cref="T:System.Runtime.InteropServices.FieldOffsetAttribute" /> to indicate the position of that field within the type.</para></summary></Docs><Excluded>0</Excluded></Member><Member MemberName="Sequential"><MemberSignature Language="ILASM" Value=".field public static literal valuetype System.Runtime.InteropServices.LayoutKind Sequential = 0" /><MemberSignature Language="C#" Value="Sequential" /><MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Runtime.InteropServices.LayoutKind Sequential = int32(0)" /><MemberType>Field</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Runtime.InteropServices.LayoutKind</ReturnType></ReturnValue><Parameters /><MemberValue>Sequential</MemberValue><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>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.</para></summary></Docs><Excluded>0</Excluded></Member></Members><TypeExcluded>0</TypeExcluded></Type>