Akash Varshney
Why are out parameters a bad idea in .Net ?
By Akash Varshney in C# on Oct 04 2015
  • Shweta Lodha
    Jan, 2016 18

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

    • 0
  • Akash Varshney
    Oct, 2015 4

    .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

    • 0

Most Popular Job Functions