Any Output parameter must have either the modifier ref
or out
.
You can also use the provided automatic Code Fix to add the out
modifier to the parameter. (Press Alt + Enter on the Error line to find the Code Fix in the context menu)
Add the out
(or ref
) modifier to the parameter.