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


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


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.


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