If I have the following collection
IEnumerable<ProviderOrganisation> listOfProviders
public class ProviderOrganisation
{
public virtual string Code { get; set; }
public virtual string Description { get; set; }
public virtual int SortOrder { get; set; }
public virtual bool IsDefault { get; set; }
public virtual DateTime EffectiveStartDate { get; set; }
public virtual DateTime? EffectiveEndDate { get; set; }
}
How to write LINQ to create a collection of only codes, please?
So just a list of codes:
List<string> listOfCodes
thank
source
share