c# cannot initialize a by-reference variable with a value code example
Example: cannot initialize a by-value variable with a reference
// must declare variable as ref as well!
ref int x = ref SomeClass.variable;
// must declare variable as ref as well!
ref int x = ref SomeClass.variable;