You could do:
bool onlyOne = source.Where(/*condition*/).Take(2).Count() == 1
Which will prevent count from enumerating a large sequence unnecessarily in the event of multiple matches.
You could do:
bool onlyOne = source.Where(/*condition*/).Take(2).Count() == 1
Which will prevent count from enumerating a large sequence unnecessarily in the event of multiple matches.