Skip to content

Commit

Permalink
Changed description of output parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rpetrusha committed Mar 17, 2017
1 parent 91c84e0 commit 88a1ea2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/csharp/tour-of-csharp/classes-and-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ A *reference parameter* is used for both input and output parameter passing. The

[!code-csharp[swapExample](../../../samples/snippets/csharp/tour/classes-and-objects/RefExample.cs#L3-L18)]

An *output parameter* is used for output parameter passing. An output parameter is similar to a reference parameter except that the initial value of the caller-provided argument is unimportant. An output parameter is declared with the `out` modifier. The following example shows the use of `out` parameters.
An *output parameter* is used for passing arguments by reference. It is similar to a reference parameter, except that it does not require that you explicitly assign a value to the caller-provided argument. An output parameter is declared with the `out` modifier. The following example shows the use of `out` parameters using the syntax introduced in C# 7.

[!code-csharp[OutExample](../../../samples/snippets/csharp/tour/classes-and-objects/OutExample.cs#L3-L17)]

Expand Down

0 comments on commit 88a1ea2

Please sign in to comment.