About 720,000 results
Open links in new tab
  1. What are the uses of "using" in C#? - Stack Overflow

    Mar 8, 2017 · User kokos answered the wonderful Hidden Features of C# question by mentioning the using keyword. Can you elaborate on that? What are the uses of using?

  2. What is the difference between using and await using? And how …

    Oct 29, 2019 · 45 Justin Lessard's answer explains the difference between using and await using, so I'll focus on which one to use. There are two cases: either the two methods Dispose / …

  3. c# - try/catch + using, right syntax - Stack Overflow

    In other word, if you know that the initialization of a variable in using may throw a particular exception, I wrap it with try-catch. Similarly, if within using body something may happen, which …

  4. What is the C# Using block and why should I use it? [duplicate]

    The using statement is used to work with an object in C# that implements the IDisposable interface. The IDisposable interface has one public method called Dispose that is used to …

  5. What is the logic behind the "using" keyword in C++?

    Dec 27, 2013 · 240 What is the logic behind the "using" keyword in C++? It is used in different situations and I am trying to find if all those have something in common and there is a reason …

  6. Why use a using statement with a SqlTransaction?

    During my Googling I see many people using a using statement with a SqlTransaction. What is the benefit and/or difference of using this type of statement with a SqlTransaction?

  7. c# - in a "using" block is a SqlConnection closed on return or ...

    The intention of "using" is to give developers a guaranteed way to make sure that resources get disposed. From MSDN: A using statement can be exited either when the end of the using …

  8. grammar - 'I was using', 'I have used', 'I have been using', 'I had ...

    Oct 21, 2010 · I had been using cocaine. Meaning, with a reference point in the past, starting a time before then up to the reference point, I was habitually using cocaine up to and including …

  9. c++ - Using std Namespace - Stack Overflow

    There seem to be different views on using 'using' with respect to the std namespace. Some say use ' using namespace std', other say don't but rather prefix std functions that are to be used …

  10. How do I use the C#6 "Using static" feature? - Stack Overflow

    Aug 6, 2015 · The static Keyword on a using statement will import only the one, specified type (and its nested types). Furthermore you must not give the type name anymore. So just add …