I have started learning C#/.NET/VisualStudio (2022) and have this strange problem; all the methods/classes in System and it's nested namespaces seem to be available without full path or using directives at beginning.
E.g. the following example compiles just fine:
// Program.cs
namespace MyApp
{
internal class Program
{
static void Main()
{
Console.WriteLine("Hello World!"); //System.Console
}
static HttpClient client = new HttpClient(); //System.Net.Http.HttpClient
}
}
Why this happens and can I disable this behavior somehow?