.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

To drop an instanse of an object?

Posted By: Ramesh     Posted Date: August 11, 2010    Points:2   Category :C#
Hi,

How can i drop an instanse of an object????

if we need to automatically drop one object in c# wall i do?
offcourse it can be done using dispose() by manually...
but automatically thr is a way..wat is that??

Regards,
Ramesh

Responses
Author: Hiren Soni             
Posted Date: August 11, 2010     Points: 5   

Once the object goes out of scope,

it will automatically dispose.

ex.


{
student_class s;


}

when the bracket closes, it will automatically dispose the object student_class

Hiren soni
http://www.dotnetask.com


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend