how to add all class properties together in c# using ref 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;