File: src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\InlineArray.cs
Web Access
Project: src\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj (System.Private.CoreLib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System.Runtime.Versioning;
 
namespace System.Runtime.CompilerServices
{
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 2.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(2)]
    [NonVersionable]
    public struct InlineArray2<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 3.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(3)]
    [NonVersionable]
    public struct InlineArray3<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 4.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(4)]
    [NonVersionable]
    public struct InlineArray4<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 5.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(5)]
    [NonVersionable]
    public struct InlineArray5<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 6.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(6)]
    [NonVersionable]
    public struct InlineArray6<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 7.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(7)]
    [NonVersionable]
    public struct InlineArray7<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 8.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(8)]
    [NonVersionable]
    public struct InlineArray8<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 9.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(9)]
    [NonVersionable]
    public struct InlineArray9<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 10.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(10)]
    [NonVersionable]
    public struct InlineArray10<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 11.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(11)]
    [NonVersionable]
    public struct InlineArray11<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 12.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(12)]
    [NonVersionable]
    public struct InlineArray12<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 13.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(13)]
    [NonVersionable]
    public struct InlineArray13<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 14.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(14)]
    [NonVersionable]
    public struct InlineArray14<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 15.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(15)]
    [NonVersionable]
    public struct InlineArray15<T>
    {
        private T t;
    }
 
    /// <summary>
    /// Represents an inline array of <typeparamref name="T"/> with a fixed length of 16.
    /// </summary>
    /// <typeparam name="T">The type of elements in the array.</typeparam>
    [InlineArray(16)]
    [NonVersionable]
    public struct InlineArray16<T>
    {
        private T t;
    }
}