I’m running the following code:
hashedUrlDataList.Select(mDalHashedUrlData.Save);
I have put a breakpoint in the called delegate,
public HashedUrlData Save(HashedUrlData item)
{
//breakpoint here
}
but it doesn’t stop there.
How can I fix this?
Enumerable.Select is Lazy.
Try this and tell me if your break point is caught
Or the basic:
It just works if you have at least one element.
You can do it too:
Any() do the same that GetEnumerator().MoveNext()
I think that what you want is: