This question shows research effort; it is useful and clear
3
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
为什么这不起作用?
string myString = "test";
int i = myString.Length; // i = 4
myString.PadLeft(5, '_'); // "myString" is should be equal to "_test", but it still "test"
i = myString.Length; // i = 4 (should be 5)