Answers for "how to get first word of string c#"

C#
0

unity how to get the first word from string

string test = "first second";

print(test.Split(new char[] { ' ' })[0]);
print(test.Split(new char[] { ' ' })[1]);
Posted by: Guest on November-15-2020

Code answers related to "how to get first word of string c#"

C# Answers by Framework

Browse Popular Code Answers by Language