+ 1
Could anyone help me teach me what this means. | C#
Does anyone know what âusing systemâ means, thank you
4 Réponses
+ 5
From the lesson, you might not be up to it yet in your C# course:
The System is a standard namespace that contains different functionalities, such as the familiar Console.WriteLine method.
"Using" just means that your program is connected to this namespace and can use the functionalities.
+ 5
using System;
This gives you a shortcut so that can type less when writing code. Without it, you would have to type the entire namespace path to objects in the System library.
For example, instead of:
Console.Write("Hello, World!");
You would have to write the fully-qualified name:
System.Console.Write("Hello, World!")
That's about all there is to it. It saves keystrokes and makes code less wordy.
+ 4
You can think of it as a toolbox.
The code is your workbench, and any codes you write are scratch or some kind of drawing.
"using System" is like a tool you picked from the toolbox, and you put it on the workbench for use.
An analogy would be "using Ruler". You picked a ruler, with it you can measure(point a-b) or drawStraightLine(20 cm).
+ 3
Thanks