C
C#6mo ago
Jexs

are theses considered namespaces?

are theses considered namespaces using System; using MyApplication.Utilities;
11 Replies
333fred
333fred6mo 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
JexsOP6mo ago
I’m confused D:
333fred
333fred6mo ago
What is confusing you?
Jimmacle
Jimmacle6mo ago
yes, but like fred is saying you can have lines that start with using that aren't namespaces too
Jexs
JexsOP6mo ago
Oh okay What would be an example Of this
Jimmacle
Jimmacle6mo 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
JexsOP6mo ago
Give me one second gotta look up what a type/type reference/type aliases is Do you guys reccomend chat gpt
Jimmacle
Jimmacle6mo 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
JexsOP6mo ago
Dam Would string be a type
333fred
333fred6mo ago
Yes Any class or struct is a type
Jexs
JexsOP6mo ago
Okay : )
Want results from more Discord servers?
Add your server