I have a List of strings with the items such-
Titanic, Leonardo Decaprio
Mission Impossible, Tom Cruise
Is there any way such that I can get only the first substring before the comma? In above case the expected output for List<string>
should be -
Titanic
Mission Impossible