About 669,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 can I ...

    Oct 29, 2019 · using var disposable = new Disposable(); // Do something What is the difference between using and await using? How should I decide which one to use?

  3. 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 can achieve …

  4. 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 mechanically identical, so …

  5. How does the "Using" statement translate from C# to VB?

    May 20, 2009 · 2 Seems like using (C#) and Using (VB) have an extremely important difference. And at least for me now, it can defeat the purpose of Using.

  6. 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 is not directly …

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

    Dec 27, 2013 · 182 In C++11, the using keyword when used for type alias is identical to typedef. 7.1.3.2 A typedef-name can also be introduced by an alias-declaration. The identifier following the using …

  8. Defining and using a variable in batch file - Stack Overflow

    Defining and using a variable in batch file Asked 13 years, 7 months ago Modified 8 months ago Viewed 1.3m times

  9. How to update/upgrade a package using pip? - Stack Overflow

    Nov 2, 2017 · What is the way to update a package using pip? those do not work: pip update pip upgrade I know this is a simple question but it is needed as it is not so easy to find (pip …

  10. 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. seeing …