top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Difference between Throw Exception and Throw Clause in C#?

0 votes
328 views
Difference between Throw Exception and Throw Clause in C#?
posted Mar 31, 2017 by Sunil

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The basic difference between two is that the "Throw exception overwrites the stack trace and this makes it hard to find the original code line number that has thrown the exception. Throw basically retains the stack information and adds to the stack information in the exception that it is thrown."

answer Mar 31, 2017 by Shweta Singh
...