I have something like the following:
var lst = db.usp_GetLst(ID,Name, Type);
if (lst.Count == 0)
{
}
I get a swigly lie under lst.Count == 0 and it says:
Operator ‘==’ cannot be applied to operands of type ‘method group’ and ‘int’
Enumerable.Countis an extension method, not a property. This meansusp_GetLstprobably returnsIEnumerable<T>(or some equivalent) rather than a derivative ofIList<T>orICollection<T>which you expected.