Skip to content

Commit 74463a2

Browse files
authored
changed files by pdets auto publish service, publishid[e7180aca-81e2-4590-90f3-04b1e1346a7f] and do [publish].
1 parent 81941c3 commit 74463a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

learn-pr/wwl-azure/manage-class-implementations/includes/5-specify-named-optional-method-arguments.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ A method definition can specify whether its parameters are required or optional.
6464

6565
Each optional parameter has a default value as part of its definition. If no argument is sent for that parameter, the default value is used. A default value must be one of the following types of expressions:
6666

67-
- a constant expression, such as a literal string or number.
68-
- an expression of the form `new ValType()`, where `ValType` is a value type, such as an `enum` or a `struct`.
69-
- an expression of the form `default(ValType)`, where `ValType` is a value type.
67+
- A constant expression, such as a literal string or number.
68+
- An expression of the form `new ValType()`, where `ValType` is a value type, such as an `enum` or a `struct`.
69+
- An expression of the form `default(ValType)`, where `ValType` is a value type.
7070

7171
Optional parameters are defined at the end of the parameter list, after any required parameters. The caller must provide arguments for all required parameters and any optional parameters preceding those it specifies. Comma-separated gaps in the argument list aren't supported. For example, in the following code, instance method `ExampleMethod` is defined with one required and two optional parameters.
7272

0 commit comments

Comments
 (0)