【发布时间】:2016-03-08 20:49:29
【问题描述】:
我正在尝试做这样的事情:
string foo = "Hello, this is a string";
//and then search for it. Kind of like this
string foo2 = foo.Substring(0,2);
//then return the rest. Like for example foo2 returns "He".
//I want it to return the rest "llo, this is a string"
谢谢。
【问题讨论】:
-
将其更改为
foo.Substring(2);。完成。