Jul 17, 2019 01:21 PM|PatriceSc|LINK
It rather depends on what you'll do next with this variable ie do you need later to use something that is particular to a string ?
The advice is often to use the more general type needed to write your code (ie IEnumerable<string> if enough, List<string>, string or some other data structure if really needed).
If you are new to interfaces try https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/
In short it allows to write code against objects based on what they can
do rather than what they actually are.