I created a class which is inherited from interface
IDisposable. Now if I use object of this class with using
keyword. Then How the dispose method will get call. Does
garbage collector call it or some else.
Answers were Sorted based on User's Feedback
Answer / amit kumar mishra
public void Dispose()
{
GC.SupressFinalize(this);
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / imatoria
http://msdn.microsoft.com/en-us/magazine/cc163392.aspx
| Is This Answer Correct ? | 0 Yes | 1 No |
Are objects passed by reference in c#?
What is a byte in c#?
Why do I get a syntax error when trying to declare a variable called checked?
Is it possible to inline assembly or il in c# code?
What does xpath return?
Why do we need reflection in c#?
What is difference between variable and property in c#?
How does substring work in c#?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
If a base class has a bunch of overloaded constructors, and an inherited class has another bunch of overloaded constructors, can you enforce a call from an inherited constructor to an arbitrary base constructor?
What is difference between value and reference types?
how can i get this 123456789 1234 6789 123 789 12 89 1 9
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)