What's the difference between the following two? The first 1 works but the 2nd one errors out stating that 'Select' cannot be found. I can't understand why.
1st:
Office Office = cHelper.Offices .Where(o => o.IP3rdOctet == OSHelper.Get3rdOctetOfMyIP()) .FirstOrDefault(); 2nd:
Office Office = from o in cHelper.Offices .Where(o => o.IP3rdOctet == OSHelper.Get3rdOctetOfMyIP()) .FirstOrDefault() select o;