Whats the difference between the ref and out modifiers on parameters?
Both the ref and out modifiers are applied to arguments of a method and both mean that the argument will be passed “by reference” (either a value type variable by reference or a reference type variable by reference). The out parameter, however, allows you to pass in an uninitialized variable like so and guarantees it will come back with its value set (so long as the called method was written in C#, anyway).