better to write a helper function to convert
List<object>
's to a meaningful string or select an object from the list, then convert it to a string. it depends on your aim.
One helper might be:
string MyListStringRepresentation(List<object> l) {
string s = string.Empty;
l.ForEach(l1=>s+=l1.ToMyString());
return s;
}
string ObjectStringRepresentationAt(List<object> l, int idx) {
return l[idx].ToMyString();
}</object></object>
then you can use above functions when replacing a text in your code. there are really many options here. it depends on what you want to do.
besides that, I advice you not to use
List<object>
which is very ambiguous. use type-safe declarations like
List<string>, List<SomeClass>, List<SomeInterface>, List<SomeAbstaction>
. you have .net framework, use its power. even my helper functions is not good enough in terms of my suggestion. I can use extension methods, overrides etc.