using System;
namespace System.Runtime.CompilerServices
{
/// Indicates that a field should be treated as containing a fixed number of elements of the specified primitive type. This class cannot be inherited.
// Token: 0x02000050 RID: 80
[AttributeUsage(AttributeTargets.Field, Inherited = false)]
public sealed class FixedBufferAttribute : Attribute
{
/// Initializes a new instance of the class.
/// The type of the elements contained in the buffer.
/// The number of elements in the buffer.
// Token: 0x06000678 RID: 1656 RVA: 0x00014BF8 File Offset: 0x00012DF8
public FixedBufferAttribute(Type elementType, int length)
{
this.elementType = elementType;
this.length = length;
}
/// Gets the type of the elements contained in the fixed buffer.
/// The type of the elements.
// Token: 0x170000BB RID: 187
// (get) Token: 0x06000679 RID: 1657 RVA: 0x00014C10 File Offset: 0x00012E10
public Type ElementType
{
get
{
return this.elementType;
}
}
/// Gets the number of elements in the fixed buffer.
/// The number of elements in the fixed buffer.
// Token: 0x170000BC RID: 188
// (get) Token: 0x0600067A RID: 1658 RVA: 0x00014C18 File Offset: 0x00012E18
public int Length
{
get
{
return this.length;
}
}
// Token: 0x040000A3 RID: 163
private Type elementType;
// Token: 0x040000A4 RID: 164
private int length;
}
}