ref — must initialize before. out — must assign inside.
1// ref — must be initialized2void Increment(ref int x) {3 x++;4}56int a = 5;7Increment(ref a); // OK89// out — no initialization needed10bool TryParse(string s, out int result) {11 result = int.Parse(s);12 return true;13}1415int number;16TryParse("123", out number); // OK