« CSharp 7.1 » : différence entre les versions

De Banane Atomic
Aller à la navigationAller à la recherche
(Page créée avec « Category:CSharp = [https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.1/async-main Async Main] = <filebox fn='Program.cs'> // the fol… »)
 
Ligne 2 : Ligne 2 :
= [https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.1/async-main Async Main] =
= [https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-7.1/async-main Async Main] =
<filebox fn='Program.cs'>
<filebox fn='Program.cs'>
// the following signatures are now allowed entrypoints:
// the following methods are now allowed entrypoints:
static Task Main() { }
static async Task Main() { }
static Task<int> Main() { }
static async Task Main(string[] args) { }
static Task Main(string[]) { }
static async Task<int> Main() { }
static Task<int> Main(string[]) { }
static async Task<int> Main(string[] args) { }
</filebox>
</filebox>

Version du 15 décembre 2021 à 16:38

Async Main

Program.cs
// the following methods are now allowed entrypoints:
static async Task Main() { }
static async Task Main(string[] args) { }
static async Task<int> Main() { }
static async Task<int> Main(string[] args) { }