how to return 2 values from one function
<p>i have a function that calculate two locations and i want to get them both, is there a way to get two values returned from the same function, with out turning them into an array. i think something with an out argument or something like that... tnx. here my code:</p>

<pre><code>public static int Location(int p_1, int p_2, int p_3, int p_4)
{
  int  XLocation = p_2 - p_1;
  int YLocation = p_4-p_3;
  return XLocation,YLocation;
}

public void Print()
{
}
</code></pre>
