dispose method
From: R.A. (temp_at_citsecure.com)
Date: 03/24/04
- Next message: Ramesh: "Go to Defination and coming back"
- Previous message: Martin Maurer: "Re: Enumerates COM Port"
- Next in thread: Steve James: "Re: dispose method"
- Reply: Steve James: "Re: dispose method"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: dispose method"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 24 Mar 2004 13:37:38 -0600
Hi
IF I design a class and would like to be able to call the class distructor,
how can I do it in c#? Is that the propose of the dispose? What I need to do
is in my class I connect to sql server and the user can call the close
method of my class which will close the connection to the server. But in
case they forgot to the close then if they call the class destructor then
the connection will be closed (in c++). So how can I do it in c#?
Thanks
- Next message: Ramesh: "Go to Defination and coming back"
- Previous message: Martin Maurer: "Re: Enumerates COM Port"
- Next in thread: Steve James: "Re: dispose method"
- Reply: Steve James: "Re: dispose method"
- Reply: Nicholas Paldino [.NET/C# MVP]: "Re: dispose method"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|