Last active
July 7, 2020 10:30
-
-
Save guitarrapc/f44f5454b16cad6a53214d6ffaaf90b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using namespace System.Collections.Generic | |
function _f { | |
$l = New-Object "List[string]" | |
$l.Add("abc") | |
return $l | |
} | |
$list = _f | |
$list | |
# output: abc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 5 | |
using namespace System.Collections.Generic | |
function _f { | |
$l = [List[string]]::New() | |
$l.Add("abc") | |
return $l | |
} | |
$list = _f | |
$list | |
# output: abc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment