Is it possible to pass a struct byref and readonly to a function? (just like T const&
in C++)
struct A
{
public int b;
}
void func1(ref A a) // I want to make this `a` immutable
{
}
How to do that?
Update
My biggest concern is passing (1) immutable state (2) efficiently. Second concern is the mutating the state must be simple and easy as like mutable object.