Title: Add `use static
Open Graph Title: Add `use static
X Title: Add `use static
Description: Reference: #3603 Proposal is to add usage to the using statement to allow for ease of access to static members of classes. one possible syntax: using static System.Math $b = Pow(1024, 2) This issue is open to discuss possible implementat...
Open Graph Description: Reference: #3603 Proposal is to add usage to the using statement to allow for ease of access to static members of classes. one possible syntax: using static System.Math $b = Pow(1024, 2) This issue...
X Description: Reference: #3603 Proposal is to add usage to the using statement to allow for ease of access to static members of classes. one possible syntax: using static System.Math $b = Pow(1024, 2) This issue...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5099
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `use static \u003cclass>` usage to allow static member access in PowerShell","articleBody":"Reference: #3603\r\n\r\nProposal is to add usage to the `using` statement to allow for ease of access to static members of classes.\r\n\r\none possible syntax:\r\n```powershell\r\nusing static System.Math\r\n\r\n$b = Pow(1024, 2)\r\n```\r\n\r\nThis issue is open to discuss possible implementations, issues concerns, use cases, yays and nays. \r\n\r\nQuestions: Methods only? All members? syntax? support for PowerShell v5+ user defined classes? precedence?","author":{"url":"https://github.com/markekraus","@type":"Person","name":"markekraus"},"datePublished":"2017-10-12T20:16:10Z","url":"https://github.com/PowerShell/PowerShell/issues/5099"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:430339a1-51b1-68f2-ba8f-af3d9faeb491 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A1DA:35BEEA:72052D:A0CFBA:6AFDC298 |
| html-safe-nonce | ab89b0aeb1c02e4c9435d816a2fa7e6b95103200d5e9bba38ab5b63f1cb847c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMURBOjM1QkVFQTo3MjA1MkQ6QTBDRkJBOjZBRkRDMjk4IiwidmlzaXRvcl9pZCI6Ijg1MTg2OTA3ODQzOTA1Mjk2ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | bb19d243193add4e9f424aa17271ef94133b2cfea0cac9605b2bacc9d1ffbd9d |
| hovercard-subject-tag | issue:265071603 |
| 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/PowerShell/PowerShell/5099/issue_layout |
| twitter:image | https://opengraph.githubassets.com/88c1731542f8e499e86d5b9332ce536b9292b2cb13498bf8db7cf96631c620f7/PowerShell/PowerShell/issues/5099 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/88c1731542f8e499e86d5b9332ce536b9292b2cb13498bf8db7cf96631c620f7/PowerShell/PowerShell/issues/5099 |
| og:image:alt | Reference: #3603 Proposal is to add usage to the using statement to allow for ease of access to static members of classes. one possible syntax: using static System.Math $b = Pow(1024, 2) This issue... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markekraus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 35c6bf57da1370dc64866160540c0ee9f825f291935b3bf6ec5492b00e35f3a6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | ab48c73a2978548773f5f24717ed9e58508befdb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width