By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,402 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,402 IT Pros & Developers. It's quick & easy.

About constructors & Destructors

P: n/a
Hi All !

I want to know about the constructors & Destructors,

constructors ---> New
Destructors --> What ? (Which keyword to use for Destructor)

Thanks & Regards,
ElanKathir.S.N,
ASM Technologies,
B'lore.

Nov 20 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Ot
dim athing = new thing

.... use athing as you will...

athing = nothing ' it goes away

Is that what you meant?

"ElanKathir" <sn**********@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All !

I want to know about the constructors & Destructors,

constructors ---> New
Destructors --> What ? (Which keyword to use for Destructor)

Thanks & Regards,
ElanKathir.S.N,
ASM Technologies,
B'lore.
Nov 20 '05 #2

P: n/a
ElanKathir wrote:
Hi All !

I want to know about the *constructors & Destructors,*

*constructors ---> New *
*Destructors --> What ? *(Which keyword to use for Destructor)

Thanks & Regards,
ElanKathir.S.N,
ASM Technologies,
B'lore.


I may be wrong, but I don't think VB.NET has any destructors. The
garbage collector does the job automatically.

Snuyt

Nov 20 '05 #3

P: n/a
* "Ot" <ur***@tds.invalid (use net)> scripsit:
athing = nothing** ' it goes away


This will only set a reference to 'Nothing', but the object previously
pointed to by 'athing' will be destroyed some times later by the GC.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

P: n/a
* "ElanKathir" <sn**********@hotmail.com> scripsit:
I want to know about the constructors & Destructors,

constructors ---> New

Destructors --> What ? (Which keyword to use for Destructor)


There is no deterministic desctruction in .NET. There are only
finalizers and the 'IDisposable' interface, you can implement.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

P: n/a
"ElanKathir" <sn**********@hotmail.com> schrieb

I want to know about the constructors & Destructors,

constructors ---> New
Destructors --> What ? (Which keyword to use for Destructor)


http://msdn.microsoft.com/library/en...collection.asp

http://msdn.microsoft.com/library/en...management.asp
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.