Classes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Keon

    #1

    Classes

    When you create an instance of a class, do you have to delete the
    instance after you are finished with it? I can't seem to find any
    information dealing with that. All I see is create the instance and
    thats it.

    Thanks

    Keon


  • Ignacio Machin \( .NET/ C# MVP \)

    #2
    Re: Classes

    Hi,

    In general no, the GC will take care of that. The only difference is when
    the class implement the IDisposable interface, these are classes that you
    should call Dispose on when finished with them.

    --
    Ignacio Machin
    The #1 Warehouse Management System & Direct Store Delivery Software (DSD) for QuickBooks & ERP Systems – LaceUp Solutions

    Mobile & warehouse Solutions.
    "Keon" <keon@helloworl d.comwrote in message
    news:u8JFyDHVIH A.2368@TK2MSFTN GP05.phx.gbl...
    When you create an instance of a class, do you have to delete the
    instance after you are finished with it? I can't seem to find any
    information dealing with that. All I see is create the instance and
    thats it.
    >
    Thanks
    >
    Keon
    >
    >

    Comment

    Working...