I saw a code with & in linq condition
var highestApplicationStatus = (from status in ctx.ApplicationStatuses.Where(o => o.ApplicationId == Application.ApplicationId & o.IsDeleted == false & o.StatusDate != null).OrderByDescending(o => o.ApplicationStatusType.DisplayOrder) select status).FirstOrDefault();
I rewrote it using &&
var highestApplicationStatus = (from status in ctx.ApplicationStatuses.Where(o => o.ApplicationId == Application.ApplicationId && o.IsDeleted == false && o.StatusDate != null).OrderByDescending(o => o.ApplicationStatusType.DisplayOrder) select status).FirstOrDefault();
There has been a bug while released and i have been asked about this change. My understanding was that && is used for Logical And where as & is for bit wise operation . One team member was suggesting that & / && are same in Linq Environment. Can someone explain the difference