Ejemplo n.º 1
0
    static void Main()
    {
        List <ModelData> modelData = ModelRepository.GetAllModelDataFromMagicPlace();
        var priorDateRealTrades    = modelData.OrderByDescending(d => d.DT)
                                     .Distinct(new ModelDataNameComparator())
                                     .ToList();

        foreach (ModelData md in priorDateREalTrades)
        {
            Console.WriteLine("name: {0}, Date: {1}", md.name, md.DT);
        }
    }