Top "Using" questions

"using" is a keyword in some programming languages (C++, C#, VB.

Why remove unused using directives in C#?

I'm wondering if there are any reasons (apart from tidying up source code) why developers use the "Remove Unused Usings" …

c# .net using
Create a temporary file from stream object in c#

Given a stream object which contains an xlsx file, I want to save it as a temporary file and delete …

c# stream idisposable using
Oracle USING clause best practice

Disclaimer: I'm a developer and not a DBA. I've been a huge fan of the USING clause in Oracle since …

oracle join using natural-join
Will a using block close a database connection?

using (DbConnection conn = new DbConnection()) { // do stuff with database } Will the using block call conn.Close()?

c# database using
Error with: using System.Data;

using System; using System.Data; using System.Data.SqlClient; ... I get the following error: The type or namespace name 'Data' …

c# visual-studio using system.data
Are there any side effects of returning from inside a using() statement?

Returning a method value from inside a using statement that gets a DataContext seems to always work fine, like this: …

c# using
a way in c++ to hide a specific function

i have an inheritance struct A : public B, i want to hide individual functions from B, is this possible? i …

c++ inheritance using private-members public-fields
How is performance affected by an unused using directive?

Visual Studio will automatically create using statements for you whenever you create a new page or project. Some of these …

c# .net visual-studio using
scope of using declaration within a namespace

Is it safe (and correct) in a C++ header file to use the using declaration within a namespace as follows: #…

c++ namespaces scope using
"using" keyword in java

Does Java have a using statement that can be used when opening a session in hibernate? In C# it is …

c# java using