I've recently been messing with scripting in C# for making simulations in unity, and I've found it a little strange how in C# we can reference classes from different files without importing them.
Ex. in python, if we have to files in the same dir, we would do something like this
from OtherFile import className
instance = className()
Or if everything is a package, we can import from parent dirs like this
from ..utils.mathFunctions import NoiseFunction
In C#, I have multiple files in different locations, all under a single parent directory, and in any file, I'm able to use any other (public) class in any other file without importing, or ensuring they are in the same directory.
How does this happen?