[DebuggerDisplay("{DisplayString,nq}")]
[DebuggerTypeProxy(typeof(Vector128DebugView<>))]
[StructLayout(LayoutKind.Sequential, Size = 16)]
- public struct Vector128<T> where T : struct
+ public readonly struct Vector128<T> where T : struct
{
// These fields exist to ensure the alignment is 8, rather than 1.
// This also allows the debug view to work https://github.com/dotnet/coreclr/issues/15694)
- private ulong _00;
- private ulong _01;
+ private readonly ulong _00;
+ private readonly ulong _01;
private unsafe string DisplayString
{
namespace System.Runtime.Intrinsics
{
- internal struct Vector128DebugView<T> where T : struct
+ internal readonly struct Vector128DebugView<T> where T : struct
{
- private Vector128<T> _value;
+ private readonly Vector128<T> _value;
public Vector128DebugView(Vector128<T> value)
{
[DebuggerDisplay("{DisplayString,nq}")]
[DebuggerTypeProxy(typeof(Vector256DebugView<>))]
[StructLayout(LayoutKind.Sequential, Size = 32)]
- public struct Vector256<T> where T : struct
+ public readonly struct Vector256<T> where T : struct
{
// These fields exist to ensure the alignment is 8, rather than 1.
// This also allows the debug view to work https://github.com/dotnet/coreclr/issues/15694)
- private ulong _00;
- private ulong _01;
- private ulong _02;
- private ulong _03;
+ private readonly ulong _00;
+ private readonly ulong _01;
+ private readonly ulong _02;
+ private readonly ulong _03;
private unsafe string DisplayString
{
namespace System.Runtime.Intrinsics
{
- internal struct Vector256DebugView<T> where T : struct
+ internal readonly struct Vector256DebugView<T> where T : struct
{
- private Vector256<T> _value;
+ private readonly Vector256<T> _value;
public Vector256DebugView(Vector256<T> value)
{
[DebuggerDisplay("{DisplayString,nq}")]
[DebuggerTypeProxy(typeof(Vector64DebugView<>))]
[StructLayout(LayoutKind.Sequential, Size = 8)]
- public struct Vector64<T> where T : struct
+ public readonly struct Vector64<T> where T : struct
{
// These fields exist to ensure the alignment is 8, rather than 1.
// This also allows the debug view to work https://github.com/dotnet/coreclr/issues/15694)
- private ulong _00;
+ private readonly ulong _00;
private unsafe string DisplayString
{
namespace System.Runtime.Intrinsics
{
- internal struct Vector64DebugView<T> where T : struct
+ internal readonly struct Vector64DebugView<T> where T : struct
{
- private Vector64<T> _value;
+ private readonly Vector64<T> _value;
public Vector64DebugView(Vector64<T> value)
{