Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MyPowershellFunction {
- param($param1)
- # ...
- # lot of code here
- # ...
- # access variable x on private scope explicitly
- if ($private:x) {
- # do something
- }
- }
- function MyPowershellFunction {
- param($param1)
- # access variable x on private scope explicitly
- if ($local:x) {
- # do something
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement