[Novice Question] Returning parameters by reference?

Jul 1 2007 8:01 AM
Hello :)

I'm from a C++ background and have been toying with C#, I'm attempting to return a parameter by reference, something like:

cVector3& cCamera::getPosition()
{
   return mPosition; 
}

Although many google searches later I haven't been able to uncover anything :(

Answers (5)