Mahesh Chand
How do I make sure that an object is released in code such as a connection or file object?
By Mahesh Chand in C# on May 25 2012
  • Chandrakant Patil
    Mar, 2019 13

    Using statement is a very good solution for that kind of problem. When execution comes to the end of the using block. Then CLR automatically released the object. Its nice practice to always use using statement for unmanaged resources.

    • 0
  • Sachin Kalia
    Apr, 2014 22

    You should use Using statement provided by CSharp. You can touch base with me on http://dotnetpiper.blogspot.in/

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS