Everyone;ππ»ββοΈ meet the dispose method.
πThe purpose of the dispose method is to perform all tasks related to freeing resources held by an object. Even if you stop on the Dispose method in Visual Studio, it says βRelease all resources used by the selected object.β
In cases where resources are being used, we use Dispose method to tell the object: βπ₯ΈHey Bro!! Youβre done using the resource, free it so somebody else can use itπΆββοΈ.β
If we donβt do this, it will cause bugs if something else is trying to use the same resource.
π€So, we call the dispose method to free it up as soon as the object is done using that resource.
To find more info you can visit this link:
https://lnkd.in/eH-pGTGC
Top comments (0)