Mono Class Library: System.Type Overview | Members

System.Type.IsExplicitLayout Property

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

public bool IsExplicitLayout { get; }

Value

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

Remarks

This property is read-only.

Note:

Types marked with the System.Reflection.TypeAttributes.ExplicitLayout attribute cause the system to ignore field sequence and to use the explicit layout rules provided, in the form of field offsets, overall class size and alignment.

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