Should We Initialize an Out Parameter Before a Method Returns?

Open link in next tab

Should we initialize an out parameter before a method returns?

https://www.viva64.com/en/b/0800/

Surely every C# developer has used out-parameters. It seems that everything is extremely simple and clear with them. But is it really so? For a kickoff, let′s start with a self-test task.

Should we initialize an out parameter before a method returns?

Surely every C# developer has used out-parameters. It seems that everything is extremely simple and clear with them. But is it really so? For a kickoff, let's start with a self-test task.