ref Return
Returning a reference to a storage location instead of copying its value.
What is ref Return in C#?
ref Return — Returning a reference to a storage location instead of copying its value.
class ScoreBoard
{
int score;
ref int Score()
{
return ref score;
}
}
Level: Master · More C# terms at this level
Updated