Question : Everything to the left of "<"

I need to grab everything to the left of the < character in a string - in c#

Answer : Everything to the left of "<"

Try:
1:
2:
string myString = "Hello<World";
myString = myString.Substring(0, myString.IndexOf('<'));
Random Solutions  
 
programming4us programming4us