"using" is a keyword in some programming languages (C++, C#, VB.
I've defined 'using' function as following: def using[A, B <: {def close(): Unit}] (closeable: B) (f: B => A): …
scala using tuplesCan someone pitch in their opinion about pros/cons between wrapping the DataContext in an using statement or not in …
linq linq-to-sql datacontext usingI have a method that takes FileStream as input. This method is running inside a for loop. private void UploadFile(…
c# stream using idisposableHere is my sample code that I am using to fetch data from database: on DAO layer: public IEnumerable<…
c# linq using datareader yield-returnI have some questions about the desired lifetime of an Entity Framework context in an ASP.NET MVC application. Isn't …
c# asp.net-mvc entity-framework using idisposableThere is a thing that's been bugging me for a long time about Entity Framework. Last year I wrote a …
c# .net entity-framework asynchronous usingI have installed costura.fody into my project using nuget package. I have updated the FodyWeavers.xml file with: <…
c# winforms using fody-costuraIf an Exception happens within a using statement does the object still get disposed? The reason why I'm asking is …
c# exception-handling try-catch usingDoes the using statement always dispose the object, even if there is a return or an exception is thrown inside …
c# dispose using using-statement