What is the difference between dispose and finalize methods in CSharp

  • Dispose() Method
    • This Dispose() method belongs to IDisposable interface
    • It will not show any effect on performance of website and we can use this method whenever we want to free objects immediately.
  • Finalize() Method
    • This method belongs to object class.
    • It will not show any effect on performance of website and we can use this method whenever we want to free objects immediately.

results matching ""

    No results matching ""