Vivek Kumar
Why to use “using” in C#?
By Vivek Kumar in C# on Feb 08 2016
  • sushil kumar
    Jul, 2017 20

    using keyword can use two places 1.) when adding a namespace 2.) dispose the object automatically when the class implement idisposable interface.

    • 2
  • Vivek Kumar
    Feb, 2016 8

    “Using” statement calls – “dispose” method internally, whenever any exception occurred in any method call and in “Using” statement objects are read only and cannot be reassignable or modifiable.

    • 1
  • Yogesh Sevankar
    Oct, 2019 18

    Developer the desktop application

    • 0
  • Vikas
    Mar, 2018 23

    The reason for the using statement is to ensure that the object is disposed as soon as it goes out of scope, and it doesn't require explicit code to ensure that this happens.

    • 0
  • Mukesh Kumar
    Sep, 2017 3

    for implementing IDisposabel interface

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS