You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Visual Studio extension for C# (version 2022.6), when a new C# Program is added to a project, the template includes this code section:
[Program]publicclassProgram1{// Use the attributes [Global] and either [InputPort] or [OutputPort] to mark fields, // that should exchange data with other IEC- or C#-Programs[Global,OutputPort]publicinta=1;[Global,InputPort]publicintb=2;publicintc=3;:
This gives the impression that the variables b and c are both InputPort variables, when in fact only b is an input port variable.
Perhaps this could be made clearer in the template, maybe with a comment after the declaration of variable c.
The text was updated successfully, but these errors were encountered:
In the Visual Studio extension for C# (version 2022.6), when a new C# Program is added to a project, the template includes this code section:
This gives the impression that the variables
b
andc
are bothInputPort
variables, when in fact onlyb
is an input port variable.Perhaps this could be made clearer in the template, maybe with a comment after the declaration of variable
c
.The text was updated successfully, but these errors were encountered: