In .Net 2.5 I can usually get an equality comparison (==) between a value and its type default
if (myString == default(string))
However I g
This goes in a slightly different direction, but I am presuming you queried a Dictionary to get this result, and then you want to check if it returned a valid result or not.
I found the better method of doing this was to query out the actual value instead of the whole KeyValuePair, like this:
var valitem = MyDict.Values.FirstOrDefault(x=> x.Something == aVar);
Now you can check if valitem is null or not. Again, it doesn't directly answer your question, but offers what might be a alternative approach to your intended goal.