I'm new to asp.net and learning from pluralsight and instructor uses this LINQ query which I can't understand .
public IEnumerable<Restaurant> GetRestaurantsByName(string name = null)
return from r in restaurants
where string.IsNullOrEmpty(name) || r.Name.StartsWith(name)
I can't understand the where part. What does it do especially the first part string.IsNullOrEmpty(name)