Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Finalize() vs Dispose()

Finalize() vs Dispose()

Scheduled Pinned Locked Moved ASP.NET
questionvisual-studio
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anandkumar Prajapati
    wrote on last edited by
    #1

    What is the difference between Finalize() and Dispose() methods?

    M S 2 Replies Last reply
    0
    • A Anandkumar Prajapati

      What is the difference between Finalize() and Dispose() methods?

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Try doing some research before asking a question What is the difference between Finalize() and Dispose() - Google Search[^]

      Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

      1 Reply Last reply
      0
      • A Anandkumar Prajapati

        What is the difference between Finalize() and Dispose() methods?

        S Offline
        S Offline
        Shraddha_Patel
        wrote on last edited by
        #3

        This is difference between Finalize() VS Dispose():- - Methods dispose() and finalize() are the methods of C# which are invoked to free the unmanaged resources held by an object. - The dispose() method is defined inside the interface IDisposable whereas, - the method finalize() is defined inside the class object. - The main difference between dispose() and finalize() is that the method dispose() has to be explicitly invoked by the user whereas, the method finalize() is invoked by the garbage collector, just before the object is destroyed

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups