Mono Class Library: System.Type Overview | Members

System.Type.IsLayoutSequential Property

Gets a bool value indicating whether the type layout attribute System.Reflection.TypeAttributes.SequentialLayout is specified for the Type.

public bool IsLayoutSequential { get; }

Value

true if the type layout attribute System.Reflection.TypeAttributes.SequentialLayout is specified for the current Type; otherwise, false.

Remarks

This property is read-only.

Note:

The System.Reflection.TypeAttributes.SequentialLayout attribute is used to indicate that the system is to preserve field order as emitted, but otherwise the specific offsets are calculated based on the type of the field; these might be shifted by explicit offset, padding, or alignment information.

If the current instance represents a generic type, this property applies to the definition of the type. If the current instance represents an unassigned type parameter of a generic type or method, this property always returns false.

Requirements

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