"Example of Ref Readonly Parameters"

static void Test() {
	var i = 4;
	TryAdjustRefReadonly(ref i);
}

static void TryAdjustRefReadonly(ref readonly int i) {
	i = 3; // Compiler error here: "Cannot assign to variable 'i' or use it as the right hand side of a ref assignment because it is a readonly variable"
}


Code snippet taken from "Complete C# Quick Reference - C# 12".