2
Reply

Why are out parameters a bad idea in .Net ?

Akash Varshney

Akash Varshney

Oct 04, 2015
1.5k
0

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

    Shweta Lodha
    January 18, 2016
    0

    .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

    Akash Varshney
    October 04, 2015
    0