I\'m taking a basic course in C# programming, and this is a part of our assignment. Very new to programming so I feel more than a bit lost with this.
The assignment is t
You can use linq to do this easily:
This will cast all items to string and return an IEnumerable. It will fail if any items can't be cast to a string:
string
IEnumerable
items.Cast();
This will cast all items that can be to a string and skip over any that can't:
items.OfType();