I have a List<MyClass>
and MyClass
is defined as
class MyClass
{
public string ID{get; set;};
public string Name{get; set;};
}
Now i want to collect all the IDs alone from the List of MyClass objects i have and convert it into string [].
How to accomplish this?
Am not familiar with LINQ. That is why i was asking.
I dont know what to say but the downvotes made me really take a look at LINQ and projections so thanks for sharing that info.