System.Runtime.CompilerServices.FixedBufferAttribute Class

Indicates that a field should be treated as containing a fixed number of elements of the specified primitive type. This class cannot be inherited.

See Also: FixedBufferAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Field, Inherited=false)]
public sealed class FixedBufferAttribute : Attribute

Remarks

Apply the System.Runtime.CompilerServices.FixedBufferAttribute attribute to a field to indicate that it should be treated as a fixed-length inline array. The type of the field that the attribute is applied to must have a size that can contain the indicated number of elements.

Requirements

Namespace: System.Runtime.CompilerServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0