Web Technologies
Android
Angular
BootStrap
ECMAScript
HTML
Image Processing
JavaScript
MVC
Onsen UI
React JS
SOAP UI
Vue.js
Cloud/DevOps Technologies
Amazon EC2
Ansible
Augmented Reality
AWS
Azure
Big Data
Cache Teachniques
Cassandra
Commercial Insurance
Cloud
CD
CI
Data Handling
Data using R
Data Science
DevOps
Gradle
Hadoop
HBase
HDFS
Hive
IOT
Jenkins
Machine Learning
MangoDB
NGINX
SOAP UI
Latest Technologies
5G Network
Agile
Android
Arduino
Augmented Reality
Commercial Insurance
C#
C++
Cyber Security
Data Handling
Data using R
Data Science
DBMS
Design-Pattern
Fortify
Ethical Hacking
Framework
GIT
GIT Slack
Image Processing
Java
Jenkins
Jira
JUnit
Kibana
Linux
MangoDB
Oracle
PHP
Python
QTP
R Language
Regression Analysis
Robotic
Salesforce
SAP
Selenium
Service Discovery
Service Now
Spark SQL
Testing
TOGAF
Research Method
Virtual Reality
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
(
13.0k
points)
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
(
23.1k
points)
“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
What is difference between the "throw" and "throw ex" in .NET?
asked
Jun 25, 2019
in
Dot Net
by
Venkatshastri
(
1.4k
points)
#dotnet
#chash
#basicc#
0
votes
What is the difference between dispose() and finalize() methods in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
(
30.8k
points)
#dispose
#finalize-method
0
votes
What is the difference between “finalize” and “finally” methods in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
(
13.0k
points)
finalize-c#
c#-finalize
c#-finally
finally-c#
0
votes
What is the difference between method overloading and method overriding in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
(
30.8k
points)
#method-overloading
+1
vote
What is the difference between abstract class and interface in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
(
30.8k
points)
#abstract-class
0
votes
What is the difference between early binding and late binding in C#?
asked
May 6, 2020
in
C Sharp
by
SakshiSharma
(
30.8k
points)
#c-binding
#class-binding
0
votes
What is the difference between a struct and a class in C#?
asked
Feb 16, 2020
in
C Sharp
by
rahuljain1
(
6.0k
points)
#c-sharp-struct
0
votes
Explain difference between "continue" and "break" statements in C#?
asked
Feb 16, 2020
in
C Sharp
by
rahuljain1
(
6.0k
points)
#c#-continue
+1
vote
Difference between String and StringBuilder in C#?
asked
Jan 20, 2020
in
C Sharp
by
AdilsonLima
(
5.6k
points)
0
votes
What is the difference between “continue” and “break” statements in C#?
asked
Oct 18, 2019
in
C Sharp
by
Robin
(
13.0k
points)
continue-c#
break-c#
c#-break
c#-continue
...