2
Reply

Why are out parameters a bad idea in .Net ?

Akash Varshney

Akash Varshney

9y
1.5k
0
Reply

    @Akash Varshney: Could you please make your answer more clear?

    .Net does not verify that an out parameter is set inside a method that uses an out parameter before an exception is called. That means you may used uninitialized parameter without the compiler catching on to this. Use ref parameter instead