About 701,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. .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 …

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

  5. What scope does a using statement have without curly braces

    Jul 18, 2014 · So if you are using using var resp = req.GetResponse() inside of the root block of a method, then the using variable will have method scope, actually similar to the defer statement …

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

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

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

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

  10. Why use a using statement with a SqlTransaction?

    52 I've been running into some problems concerning a SqlTransaction I'm using in my code. During my Googling I see many people using a using statement with a SqlTransaction. What is …