How to make sure custom class supports deterministic
finalization?
Answer Posted / sandeep negi
By implementing IDisposable interface! Try to use 'using'
block so that after executing this block its dispose method
will be called automaticaly.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are Regex / regular expressions ?
Where is the keyword void used?
How does substring work in c#?
Explain the difference between // comments, /* */ comments and /// comments?
How many types of variables are there in c#?
What is window application in c#?
Why c# is called c sharp?
What Is An Interface Class?
Is there an equivalent to the instanceof operator in visual j++?
What is the difference between disposing of () and finalize() methods in c#?
How can an inner class access the members of outer class?
How assembly versioning in .NET prevent DLL Hell problem?
What is difference between array and collection in c#?
What are the types of constructors?
What is escape sequence in c#?