Click here to Skip to main content
15,885,244 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionSplitContainer replacement Pin
Clark Kent1238-May-12 3:49
professionalClark Kent1238-May-12 3:49 
AnswerRe: SplitContainer replacement Pin
Pete O'Hanlon8-May-12 4:31
mvePete O'Hanlon8-May-12 4:31 
GeneralRe: SplitContainer replacement Pin
Clark Kent1238-May-12 4:32
professionalClark Kent1238-May-12 4:32 
GeneralRe: SplitContainer replacement Pin
Pete O'Hanlon8-May-12 4:37
mvePete O'Hanlon8-May-12 4:37 
Questiondisplay some subrows of datalist rows inside the datalist Pin
Member 82322225-May-12 16:05
Member 82322225-May-12 16:05 
AnswerRe: display some subrows of datalist rows inside the datalist Pin
Richard MacCutchan6-May-12 1:35
mveRichard MacCutchan6-May-12 1:35 
QuestionWhat does the using System; line do ? Pin
S@53K^S4-May-12 3:08
S@53K^S4-May-12 3:08 
AnswerRe: What does the using System; line do ? Pin
Tony Richards4-May-12 3:21
Tony Richards4-May-12 3:21 
The using keyword just makes your code a little simpler by allowing you to not specify namespaces when accessing classes. For example, if you have this class:

C#
namespace Tester
{
    class Test
    { 
        private void TestMethod()
        {
            // Do Something
        }
    }
}


Without a using statement, you would use it like this:

C#
var x = new Tester.Test();


With a using statement, you can have:

C#
// At the top of your file, with the rest of the using statements
using Tester;

// In the function
var x = new Test();


Provided you don't have a class name collision (which namespaces are used to avoid in the first place), you end up with 'simpler' code (for a given value of simpler). However, they aren't essential.

The DLL references are managed by the project file and then passed directly to the compiler, not using these statements.

Incidently, this isn't a specifically C# thing, the using namespace construct in C++ works in the same way.

Does that answer your question?
GeneralRe: What does the using System; line do ? Pin
S@53K^S7-May-12 4:32
S@53K^S7-May-12 4:32 
GeneralRe: What does the using System; line do ? Pin
Richard MacCutchan7-May-12 21:43
mveRichard MacCutchan7-May-12 21:43 
GeneralRe: What does the using System; line do ? Pin
S@53K^S9-May-12 4:22
S@53K^S9-May-12 4:22 
GeneralRe: What does the using System; line do ? Pin
Richard MacCutchan9-May-12 4:28
mveRichard MacCutchan9-May-12 4:28 
GeneralRe: What does the using System; line do ? Pin
S@53K^S9-May-12 4:26
S@53K^S9-May-12 4:26 
AnswerRe: What does the using System; line do ? Pin
Ron Beyer24-May-12 17:50
professionalRon Beyer24-May-12 17:50 
QuestionHello Everybody Pin
Member 878997430-Apr-12 11:20
Member 878997430-Apr-12 11:20 
AnswerRe: Hello Everybody Pin
Wes Aday30-Apr-12 11:39
professionalWes Aday30-Apr-12 11:39 
AnswerRe: Hello Everybody Pin
Dave Kreskowiak30-Apr-12 13:20
mveDave Kreskowiak30-Apr-12 13:20 
Questionhow to find creation time of file that is taken using fileupload contro? Pin
karan 201229-Apr-12 19:19
karan 201229-Apr-12 19:19 
AnswerRe: how to find creation time of file that is taken using fileupload contro? Pin
Alan N29-Apr-12 22:27
Alan N29-Apr-12 22:27 
QuestionStoring Large Object Array to File Pin
KenEldridge26-Apr-12 14:31
KenEldridge26-Apr-12 14:31 
AnswerRe: Storing Large Object Array to File Pin
Pete O'Hanlon26-Apr-12 20:06
mvePete O'Hanlon26-Apr-12 20:06 
QuestionRe: Storing Large Object Array to File Pin
KenEldridge27-Apr-12 6:56
KenEldridge27-Apr-12 6:56 
QuestionHow can i pass List<> to Oracle SP. Pin
sakthi250625-Apr-12 0:13
sakthi250625-Apr-12 0:13 
AnswerRe: How can i pass List to Oracle SP. Pin
Pete O'Hanlon25-Apr-12 0:34
mvePete O'Hanlon25-Apr-12 0:34 
AnswerRe: How can i pass List to Oracle SP. Pin
Eddy Vluggen25-Apr-12 5:09
professionalEddy Vluggen25-Apr-12 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.