Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the difference between “throw ex” and “throw” methods in C#?
Home
C Sharp
What is the difference between “throw ex” and “throw” methods in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
What is the difference between “throw ex” and “throw” methods in C#?
throw-ex
throw-c#
c#-throw
throw-in-c-sharp
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
“throw ex” will replace the stack trace of the exception with stack trace info of re throw point.
“throw” will preserve the original stack trace info.
Related questions
+1
vote
Q: What is difference between the "throw" and "throw ex" in .NET?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
#dotnet
#chash
#basicc#
0
votes
Q: What is the difference between dispose() and finalize() methods in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#dispose
#finalize-method
0
votes
Q: What is the difference between “finalize” and “finally” methods in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
finalize-c#
c#-finalize
c#-finally
finally-c#
0
votes
Q: What is the difference between method overloading and method overriding in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#method-overloading
+1
vote
Q: What is the difference between abstract class and interface in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#abstract-class
0
votes
Q: What is the difference between early binding and late binding in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
#c-binding
#class-binding
0
votes
Q: What is the difference between a struct and a class in C#?
asked
Feb 16, 2020
in
C Sharp
by
rahuljain1
#c-sharp-struct
0
votes
Q: Explain difference between "continue" and "break" statements in C#?
asked
Feb 16, 2020
in
C Sharp
by
rahuljain1
#c#-continue
+1
vote
Q: Difference between String and StringBuilder in C#?
asked
Jan 20, 2020
in
C Sharp
by
AdilsonLima
0
votes
Q: What is the difference between “continue” and “break” statements in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
continue-c#
break-c#
c#-break
c#-continue
...