Skip to content

Commit 698c982

Browse files
committed
Refreshing
1 parent 43315c7 commit 698c982

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed
Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Function Test-PSBoundParameters {
2-
<#
2+
<#
33
.SYNOPSIS
44
Describe the function here
55
@@ -13,24 +13,24 @@ Function Test-PSBoundParameters {
1313
[CmdletBinding()]
1414

1515
param(
16-
[string]$Text,
17-
[int]$Number
18-
)
16+
[string]$Text,
17+
[int]$Number
18+
)
1919

20-
# Display all the passed parameters:
21-
$PSBoundParameters
20+
# Display all the passed parameters:
21+
$PSBoundParameters
2222

23-
# or with a switch statement:
24-
switch ($PSBoundParameters.Keys) {
23+
# or with a switch statement:
24+
switch ($PSBoundParameters.Keys) {
2525
'Text' { write-output ' A value for Text was supplied' }
2626
'Number' { write-output ' A value for Number was supplied' }
27-
}
27+
}
2828

29-
# or looping through all the key/value pairs
30-
foreach($boundparam in $PSBoundParameters.GetEnumerator()) {
31-
"Key={0} Value={1}" -f $boundparam.Key,$boundparam.Value
32-
}
29+
# or looping through all the key/value pairs
30+
foreach($boundparam in $PSBoundParameters.GetEnumerator()) {
31+
"Key={0} Value={1}" -f $boundparam.Key,$boundparam.Value
32+
}
3333

34-
# or Call a second function passing all the parameters plus any extra if needed:
35-
Test-PSBoundParametersPriv @PSBoundParameters -ExtraDemoParam 'Testing 123'
34+
# or Call a second function passing all the parameters plus any extra if needed:
35+
#Test-PSBoundParametersPriv @PSBoundParameters -ExtraDemoParam 'Testing 123'
3636
}

0 commit comments

Comments
 (0)