Login
Remember
Register
Ask a Question
What is the difference between “finalize” and “finally” methods in C#?
0
votes
asked
Oct 18, 2019
in
C Sharp
by
Robin
What is the difference between “finalize” and “finally” methods in C#?
finalize-c#
c#-finalize
c#-finally
finally-c#
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 18, 2019
by
rajeshsharma
Finalize – This method is used for garbage collection. So before destroying an object this method is called as part of clean up activity.
Finally – This method is used for executing the code irrespective of exception occurred or not.
...