This seems like something simple but I’m not able to get the syntax correct. I have a List<> of custom objects that have different properties (Name for example). What I would like to do is make a string out of all the name in the form:
Name1||Name2||Name3
I want to just string.Join but need to get my List<> of object into an array of the names from the objects.
I know this isn’t correct but somethign like
string.Join(myListofObjects[“Name”].ToArray())
What am I doing wrong?
have you tried something like: