How to make sure custom class supports deterministic
finalization?
Answer / 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 |
What is difference between ienumerable and iqueryable in c#?
class Program { void add() { int x=10, y=20; fun(); Console.WriteLine("{0}", sum); } void fun() { int sum; sum = x + y; } static void Main(string[] args) { Program f =new Program(); f.add(); } } Debug above program.....
What is the difference between parse and tryparse in c#?
FOR EXAMPLE : CLASS Dotnet { } creating object: Dotnet dn=new Dotnet(); NOW THE QUESTION IS WHICH IS CALLED AS OBJECT ? EITHER dn OR new Dotnet() and CAN YOU PROVE YOUR ANSWER????? PLEASE REPLY...
What is the use of readkey in c#?
What is the difference between a class and an object c#?
What is yield return in c#?
What is difference between float and integer?
What are c# i/o classes? What are the commonly used i/o classes?
What is the real use of interface in c#?
Can you declare the override method static while the original method is non-static?
what is be the overhead, if i use binary transmission. and will it be sent using xml text or how ?