I have seen readonly many times (often for members, but also in the context of readonly structs).
But what I've seen the first time is the combination readonly get for a property:
private double _x;
public double X
{
readonly get => _x;
set => _x = value;
}
But what does it mean? What exactly is the restriction of specifying a getter readonly?