I have a list object like this
List<Site> lsite = GetSitesById(Id);
and the Site object is
public Site(int nId, string name, int Count)
{
Id = nId;
Name = name;
SiteOverrideCount = Count;
}
What I need is List<int> OnlySites= which will have a list of only Site Id's
How can I get only id's from the lsite object, dump them in a list object and assign that to List OnlySites
I am new at this, hope my question made sense.