Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 586 Bytes

File metadata and controls

12 lines (7 loc) · 586 Bytes

Iec040 - Structure parameters should use ref

Severity: Suggestion Suggestion

Parameters that are of user types (structs attributed with [Structure], [Array] or [String]) attributed with [Input], [Output] or [InOut] should have a ref keyword. A better performance is possible using the ref keyword which uses call by reference.

Solution

You can also use the provided automatic Code Fix to add the keyword ref. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)

Add the keyword ref.