Last active
September 4, 2015 15:27
-
-
Save guitarrapc/a76573d6e4fca5bb2dc6 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
function Fuga | |
{ | |
[OutputType([List[string]])] | |
[CmdletBinding()] | |
param() | |
$array = [string[]]("a") | |
return $array | |
} | |
(Fuga).GetType().FullName # System.String !? |
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 Hoge | |
{ | |
[OutputType([List[string]])] | |
[CmdletBinding()] | |
param() | |
$list = New-Object List[string]; | |
$list.Add("a"); | |
return $list; | |
} | |
(Hoge).GetType().FullName # System.String !? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment