Title: Program template could be clearer · Issue #17 · PLCnext/CSharpExamples · GitHub
Open Graph Title: Program template could be clearer · Issue #17 · PLCnext/CSharpExamples
X Title: Program template could be clearer · Issue #17 · PLCnext/CSharpExamples
Description: 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] public class Program1 { // Use the attributes [Global] and either [InputPort] or [Out...
Open Graph Description: 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] public class Program1 { // Use the attributes...
X Description: 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] public class Program1 { // Use the attributes...
Opengraph URL: https://github.com/PLCnext/CSharpExamples/issues/17
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Program template could be clearer","articleBody":"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:\r\n\r\n```csharp\r\n [Program]\r\n public class Program1\r\n {\r\n // Use the attributes [Global] and either [InputPort] or [OutputPort] to mark fields, \r\n // that should exchange data with other IEC- or C#-Programs\r\n [Global, OutputPort]\r\n public int a = 1;\r\n [Global, InputPort]\r\n public int b = 2;\r\n public int c = 3;\r\n :\r\n```\r\nThis gives the impression that the variables `b` and `c` are both `InputPort` variables, when in fact only `b` is an input port variable.\r\n\r\nPerhaps this could be made clearer in the template, maybe with a comment after the declaration of variable `c`.","author":{"url":"https://github.com/martinboers","@type":"Person","name":"martinboers"},"datePublished":"2023-05-04T09:08:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/17/CSharpExamples/issues/17"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:22cd7596-3cb1-f1b5-aeb4-b6f1b4763be1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B44:10F729:EF5BA9:143067E:698F7CB7 |
| html-safe-nonce | f5f6d5b77a364995d5e301221dcc1f660ca282cf05a13a33a3488099be1a5976 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjQ0OjEwRjcyOTpFRjVCQTk6MTQzMDY3RTo2OThGN0NCNyIsInZpc2l0b3JfaWQiOiIzNzkxMzM0ODU0MjA2OTEzNzIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c08bd1ca649e7635c6be94c8a44778a410140dace702e929f55786362b8fff8c |
| hovercard-subject-tag | issue:1695591986 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PLCnext/CSharpExamples/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8d99e473e92e1149ee1c69c3552f5419b8279b938710374e416f92a814022df8/PLCnext/CSharpExamples/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8d99e473e92e1149ee1c69c3552f5419b8279b938710374e416f92a814022df8/PLCnext/CSharpExamples/issues/17 |
| og:image:alt | 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] public class Program1 { // Use the attributes... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | martinboers |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4763146d672e989a41c6c0bd715790c0c59341d9f855508c8a3196e1e480b8f7 |
| turbo-cache-control | no-preview |
| go-import | github.com/PLCnext/CSharpExamples git https://github.com/PLCnext/CSharpExamples.git |
| octolytics-dimension-user_id | 44154551 |
| octolytics-dimension-user_login | PLCnext |
| octolytics-dimension-repository_id | 161781703 |
| octolytics-dimension-repository_nwo | PLCnext/CSharpExamples |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 161781703 |
| octolytics-dimension-repository_network_root_nwo | PLCnext/CSharpExamples |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8b442a4e0d8e68ffb351da689499018fde153e49 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width