I have a list of objects like this:
public static List<CategorySource> categorySource;
public static List<CategorySource2> categorySource2;
public class CategorySource
{
[PrimaryKey]
public int Id { get; set; }
public int GroupId { get; set; }
public string Name { get; set; }
public int SortOrder { get; set; }
}
public class CategorySource2
{
[PrimaryKey]
public int Id { get; set; }
public int GroupId { get; set; }
public string Name { get; set; }
}
Is there a way that I can populate the categorySource2 list from the categorySource list and ignore the SortOrder property without doing a Linq select and specifying each column.
Note these are just examples as the list I have that I need to populate has over 40 properties.