var values = "***T1***2DAR***R1***".Split(new string[] { "***" }, StringSplitOptions.RemoveEmptyEntries);
Run Code Online (Sandbox Code Playgroud)
这将返回一个字符串数组,您可以使用索引器访问每个值:
string s1 = values[0]; // Will give you "T1"
string s2 = values[1]; // Will give you "2DAR"
string s3 = values[2]; // Will give you "R1"
Run Code Online (Sandbox Code Playgroud)