I have the OccupancyResultList list
List<Occupancy> occupancyResultList = new List<Occupancy>();
of Occupancy
public partial class Occupancy
{
public Nullable<System.DateTime> on_date { get; set; }
public string type_code { get; set; }
public Nullable<int> available { get; set; }
public Nullable<decimal> rate { get; set; }
public string rate_code { get; set; }
public string publish_flag { get; set; }
}
I want to create another list that has the distinct values of on_date,type_code,available
Distinct() produces a distincted result of all columns which returns repeatitions.
Can you give me a hand plz?
Thanx in advance!