Possible Duplicate:
Lambda Expression: == vs. .Equals()
Hi,
I use a lot the keyword Equals to compare variables and other stuff.
but
wines = wines.Where(d => d.Region.Equals(paramRegion)).ToList();
return an error at runtime when in the data Region is NULL
I had to use the code
wines = wines.Where(d => d.Region == paramRegion).ToList();
to get rid of the error.
Any ideas why this raises an error?
Thanks.