C
C#5mo ago
Jexs

are theses considered namespaces?

are theses considered namespaces using System; using MyApplication.Utilities;
11 Replies
333fred
333fred5mo ago
If you put them in a using X, as opposed to a using static Y, or a using Z = A, then yes, they're namespaces
Jexs
JexsOP5mo ago
I’m confused D:
333fred
333fred5mo ago
What is confusing you?
Jimmacle
Jimmacle5mo ago
yes, but like fred is saying you can have lines that start with using that aren't namespaces too
Jexs
JexsOP5mo ago
Oh okay What would be an example Of this
Jimmacle
Jimmacle5mo ago
the things fred mentioned static usings and type aliases respectively static usings: bring all the static members of a type into the file's scope (so you use them as if they were global variables/functions) type aliases: call a type something else to avoid conflicts with other types that have the same name they aren't very commonly used
Jexs
JexsOP5mo ago
Give me one second gotta look up what a type/type reference/type aliases is Do you guys reccomend chat gpt
Jimmacle
Jimmacle5mo ago
no you have to know generally what you're doing in order to use chatgpt otherwise you won't know if it's telling you garbage
Jexs
JexsOP5mo ago
Dam Would string be a type
333fred
333fred5mo ago
Yes Any class or struct is a type
Jexs
JexsOP5mo ago
Okay : )
Want results from more Discord servers?
Add your server