From d7cd776eee4b6d3187ffa50d7d3b2c243885adc5 Mon Sep 17 00:00:00 2001 From: Renze Yu Date: Thu, 8 Nov 2018 10:48:33 +0800 Subject: add list syntax example in for powershell --- powershell.html.markdown | 1 + 1 file changed, 1 insertion(+) (limited to 'powershell.html.markdown') diff --git a/powershell.html.markdown b/powershell.html.markdown index 5a5050b4..f9c20607 100644 --- a/powershell.html.markdown +++ b/powershell.html.markdown @@ -68,6 +68,7 @@ $aString="Some string" # Or like this: $aNumber = 5 -as [double] $aList = 1,2,3,4,5 +$anEmptyList = @() $aString = $aList -join '--' # yes, -split exists also $aHashtable = @{name1='val1'; name2='val2'} -- cgit v1.2.3 From 8847563b08d3d3ab4492d9a12564dd60c8c77e97 Mon Sep 17 00:00:00 2001 From: dee-see Date: Sat, 2 Feb 2019 20:41:28 -0500 Subject: Fix typo in powershell page --- powershell.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'powershell.html.markdown') diff --git a/powershell.html.markdown b/powershell.html.markdown index f9c20607..db29bf96 100644 --- a/powershell.html.markdown +++ b/powershell.html.markdown @@ -245,7 +245,7 @@ function New-Website() { 'string' | gm # Syntax for calling static .NET methods -\[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') +[System.Reflection.Assembly]::LoadWithPartialName('Microsoft.VisualBasic') # Note that .NET functions MUST be called with parentheses # while PS functions CANNOT be called with parentheses. -- cgit v1.2.3