https://stackoverflow.com/questions/526 … -and-colon
https://docs.microsoft.com/en-us/dotnet … -arguments
Visual C# 2010 introduces
C# 4.0 and later

You can also declare optional parameters by using the .NET OptionalAttribute class.
OptionalAttribute parameters do not require a default value.

positional argument cannot follow a named argument. The following statement causes a compiler error:
//CalculateBMI(weight: 123, 64);

Отредактировано Arsen.Shnurkov (2017-07-10 10:40:39)