Use of var keyword in C#
I still think var can make code more readable in some cases. If I have a Customer class with an Orders property, and I want to assign that to a variable, I will just do this: var orders = cust.Orders; I don’t care if Customer.Orders is IEnumerable<Order>, ObservableCollection<Order> or BindingList<Order> – all I want is … Read more