Difference between dispose and destructor?
Answers were Sorted based on User's Feedback
Answer / nitin
Unused unmanaged resources are removed by dispose method
and It is called manually
Destructor is used to released unused managed resources and
it is called automatically by the Garbase Collector
| Is This Answer Correct ? | 21 Yes | 3 No |
Answer / vimala
the dispose() method is used to remove the unused resources
from the memory.
whereas the destructor () method is used to deallocate the
allocated memory by the constructor() method.
| Is This Answer Correct ? | 6 Yes | 1 No |
Answer / penchal das
Dispose()is a method which is used to deallocate the unused
resources.
Destructor() is a method which is called when an object was
destroyed.
| Is This Answer Correct ? | 2 Yes | 1 No |
Explain the use of SN.exe
1.write a program in C# to find a given point which is inside in a circle. Given circle's radius and its center point? 2.Write a program in C# to generated 20 prime numbers greater than a given number? (It should be more efficient for large numbers also) 3. Write a Code to check whether a given point is inside a circle or not? given Circle's raduis and its center point. 4. using oops concept, design an elevator do not forget buttons on each floor..
What is difference between function and method in c#?
How will you get the different language strings?
without modifying source code if we compile again, will it be generated MSIL again?
Explain about CTS?
Can you inherit multiple interfaces?
7 Answers Host4Big, Mind Tree, Moftak Solutions, Siebel Systems,
Explain dataset.acceptchanges method in .net?
What is Dispose method in .NET ?
9 Answers 247Customer, KAP, TCS,
example of uniary operators and binary operators
What is the correct way of declaring an xml namespace?
Explain the top reason to use c# language?
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)