What is the state of Garbage Collection after dispose() call
info C# code?
Answers were Sorted based on User's Feedback
Answer / deepak
After dispose() call,the connection between front end(user
interface) and back end(database server) is broken,because
the dispose() removes the connection object from the memory.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / srikanth
Disapose Means simply flushing off the memory after a
perticular task is completed.
After Dispose The Stage of Garbage Collection Just Takes out
of memory it allocated.
If any mistake in my answer please intimate me
----->>>>> srikanthfanz@gmail.com
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sachkalia15
Hi All
My Observation is about this question ->
It calls to GC.SurpressFinilze() on those objects which has
been called by Dispose().
I am not pretty sure about this .
Look forward from you guys very shortly :)
Sachin Kalia
9911635975
| Is This Answer Correct ? | 0 Yes | 7 No |
What is the purpose of constructor in c#?
What C# keyword class access modifier specifies that the class is concrete and CANNOT be derived from?
What is the Difference between read only and constant variables?
What is the difference between constants and read-only?
What is the default value of decimal in c#?
What Is A Multicast Delegate?
how to convert String array to StringBuilder array or vice versa?
Describe an interface class?
If you define a user defined data type by using the struct keyword, is it a value type or reference type?
Can we return two values from a function?
Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doubt is while connecting SQL2005 Built in Database withing the Visual Studio 2005 Framework.. I am getting the error.. That " An Error occurred and it may be due to , under the default settings of the Server, the connection cannot be established.." But the code works in MS Access for me.. Both in VB.Net and C#.Net am getting the same error.. Any genius please Message me to 9994558822 or mail me.. riyash.ips@gmail.com
Consider the following pieces of C# code: a. interface I1 {/*......*/} interface I2 {/*......*/} struct Point : I1,I2 {/* ..... */} b. struct Book{ int bookId; struct Book b; } c. using M=Mystruct; struct MyStruct{ int id; } class MyClass{ static void Main(string[] args){ M m = new M(); } } d. struct Sample{ Sample ref x; } Which of the above are correct? Choose one of the options below. a, c and d are right a only right a and c are right d only wrong None of the listed options
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)