遵循课程 - 我刚刚在函数中看到了一个奇怪的参数用法

Following a course - I just saw a strange parameter usage in a function

我正在观看 C# 课程,我刚刚看到 bool 在参数中的奇怪用法。

我会展示它的截图:

这是什么意思?我以前从未见过这样的东西。

它是一个 命名参数或参数 在 C# 4 / Framework 4.0 / Visual Studio 2010 中引入:

Named arguments free you from the need to remember or to look up the order of parameters in the parameter lists of called methods. The parameter for each argument can be specified by parameter name. For example, a function that prints order details (such as, seller name, order number & product name) can be called in the standard way by sending arguments by position, in the order defined by the function.

Named and Optional Arguments (C# Programming Guide)