About 702,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 · 46 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. What is the difference between 'typedef' and 'using'?

    Updating the using keyword was specifically for templates, and (as was pointed out in the accepted answer) when you are working with non-templates using and typedef are …

  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. .net - use of "using" keyword in c# - Stack Overflow

    Nov 20, 2009 · Using the using keyword can be useful. Using using helps prevent problems using exceptions. Using using can help you use disposable objects more usefully. Using a different …

  6. "Using" or "by using"? - English Language & Usage Stack Exchange

    Not using by means that the technology used is incidental, and the focus is on the approach being shown to be feasible. Without more context it's impossible to say what the intended import of …

  7. MySQL JOIN ON vs USING? - Stack Overflow

    Extremely good point. Of all the advantages using provides, it can't be combined with other predicates: select*from t join t2 using(i) and on 1 wouldnt work.

  8. What's the problem with "using namespace std;"?

    The problem with putting using namespace in the header files of your classes is that it forces anyone who wants to use your classes (by including your header files) to also be 'using' (i.e. …

  9. 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 …

  10. c# - 'using' statement vs 'try finally' - Stack Overflow

    Jul 29, 2015 · From MSDN, using Statement (C# Reference) The using statement ensures that Dispose is called even if an exception occurs while you are calling methods on the object. You …