创建字符串和数组的方法

时间:2015-05-10 22:19:22   收藏:0   阅读:189
字符串(一头一尾的@"必须单独一行)
$string = @"
I am string
hahaha
"@
 
IsPublic IsSerial Name                                     BaseType                                      
-------- -------- ----                                     --------                                      
True     True     String                                   System.Object
 
TypeName: System.String
 
 
 
数组:
$array = @(‘I am array
hehehe ‘)
 
IsPublic IsSerial Name                                     BaseType                                      
-------- -------- ----                                     --------                                      
True     True     Object[]                                 System.Array
 
TypeName: System.String
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!