C
C#4mo ago
Jexs

are theses considered namespaces?

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