I just made a Swap routine in C# like this:
static void Swap(ref int x, ref int y) { int temp = x; x = y; y = temp; }
It does t
The short answer is Yes (similar functionality, but not exactly the same mechanism). As a side note, if you use FxCop to analyse your code, using out and ref will result in a "Microsoft.Design" error of "CA1045:DoNotPassTypesByReference."
out
ref