Tuesday, February 16, 2021

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.

Let me remind you that out parameters must be initialized by the called method before exiting it.



from DZone.com Feed https://ift.tt/37dOf2p

No comments:

Post a Comment