diff --git a/LibCpp2IL/Metadata/Il2CppVariableWidthIndex.cs b/LibCpp2IL/Metadata/Il2CppVariableWidthIndex.cs
index 0882f52c..e4bb306b 100644
--- a/LibCpp2IL/Metadata/Il2CppVariableWidthIndex.cs
+++ b/LibCpp2IL/Metadata/Il2CppVariableWidthIndex.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Threading;
namespace LibCpp2IL.Metadata;
@@ -14,7 +14,7 @@ namespace LibCpp2IL.Metadata;
/// - v105 extends this to MethodIndex
///
///
-public record struct Il2CppVariableWidthIndex where T : ReadableClass
+public readonly record struct Il2CppVariableWidthIndex where T : ReadableClass
{
//Statics here are per-T.
private static int widthForThisTypeOnCurrentApplication = -1; // -1 means "not yet determined"
@@ -27,7 +27,7 @@ public record struct Il2CppVariableWidthIndex where T : ReadableClass
///
private static object readSessionLock = new object();
- private int value;
+ private readonly int value;
public bool IsNull => value < 0; //The exact value of the "null" index depends on the width
public bool IsNonNull => !IsNull;