C#, top-level, statements
https://learn.microsoft.com/en-us/dotnet/core/tutorials/top-level-templates
// See https://aka.ms/new-console-template for more information
Console.WriteLine("Hello, World!");
---------------------------------------------
using System;
namespace MyApp
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
--------------------------------------
namespace MyProject;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello, World!");
}
}
Комментариев нет:
Отправить комментарий