About 733,000 results
Open links in new tab
  1. What is the difference between using and await using? And how …

    Oct 29, 2019 · 44 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 / …

  2. 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?

  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. 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?

  5. What's the scope of the "using" declaration in C++?

    Oct 22, 2008 · Just in case it's not clear from the other answers here: - Do not put a using declaration (or using directive) at file scope in an include file/header! That will cause …

  6. c# - Using .ToDictionary () - Stack Overflow

    Aug 31, 2010 · Edit The ToDictionary() method has an overload that takes two lambda expressions (nitpick: delegates); one for the key and one for the value. For example: var …

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

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

    Jul 29, 2015 · The using statement ensures that Dispose is called even if an exception occurs while you are calling methods on the object. You can achieve the same result by putting the …

  9. Accessing Microsoft Sharepoint files and data using Python

    Jan 30, 2020 · I am using Microsoft sharepoint. I have an url, by using that url I need to get total data like photos,videos,folders,subfolders,files,posts etc... and I need to store those data in …

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

    Yes Yes. Either way, when the using block is exited (either by successful completion or by error) it is closed. Although I think it would be better to organize like this because it's a lot easier to see …