Strange problem when returning by ref

zequion 151 Reputation points
2022-02-18T11:55:53.21+00:00

I've been having this problem for days. When trying to return by ref a Global variable, I get error CS1510 "An out or ref argument must be an assignable variable." In the real function (in the video), which I have removed almost all the lines from, the error still appears. Until in the end...

Video:cOAgxRLNgVc+

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,374 questions
{count} votes