if (other == null) return 1;
return this.Id - other.Id;
}
}
}
using ListDemo;
List... lst1 = new List { 80.0, 70.0, 60.0, 50.0, 40.0, 30.0, 20.0, 10.0 };
Book book1 = new...= 6, Name = "Book-6", Price = 60 };
Book book7 = new Book { Id = 1, Name = "Book-1", Price = 10 };
List... lst2 = new List { book1, book2, book3, book4,book5, book6 };
var res = lst2.Find(e => e.Price