📜  子字符串 c# 代码示例

📅  最后修改于: 2022-03-11 14:49:11.795000             🧑  作者: Mango

代码示例1
var str = "Some String";

public string Substring(int startIndex);

var valueOfSubstring = str.Substring(5);

public string Substring(int startIndex, int length);

var valueOfSubstring = str.Substring(5, 3);