"Readonly Struct Members Example"

struct MyStruct {
	public int Alpha { get; set; }

	// Readonly property
	public readonly int Bravo { get; }

	public void IncrementAlpha() {
		Alpha += 1;
	}

	// Readonly method: Does not alter any state in this struct
	public readonly void PrintBravo() {
		Console.WriteLine(Bravo);
	}
}


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