C#中如何实现从字符里取字
VB中 " dim strY1 as string
strY1 = Left( "abcdefgh ", 4); "
在C#中如何实现?
[解决办法]
string strY1= "abcdefgh ";
strY1 = strY1.Substring(0,4);
[解决办法]
string strY1 = "abcdefgh ".SubString(0, 4);