what is the difference between finally and dispose methods?
Answer Posted / m.m.ganesh
compulsory finally will execute after try and catch
block.Dispose method is used to clean up the
objects.Dispose methos will call in finally method to clean
up the objects
| Is This Answer Correct ? | 6 Yes | 19 No |
Post New Answer View All Answers
Give examples for value types?
How many types of constructor are there in c#?
What are scriptable objects?
From a versioning perspective, what are the drawbacks of extending an interface as opposed to extending a class?
In a C# class we have a SortedList member m_addinProjects
we want to provide an iterator to allow the consumer of
this class access to the items in the collection. Please
provide an iterator method for the AnalyzeAddinsDLL class
below and an example of how it would be used.
namespace AnalyzeAddinsDLL
{
public class AllAddInProjects
{
private SortedList
What is the use of console readkey ()?
What are static and dynamic variables?
What is the C# syntax to catch any possible exception?
Is string passed by reference in c#?
What are the main reasons to use c# language?
What is super class in c#?
Explain the difference between the system.array.copyto() and system.array.clone()?
How to reverse each word in a string using c#?
Explain deadlock?
What is the difference between as and is operators in c#?