I'm use to having a dictionary like the following
Dictionary<int, int> interestCountsDict = ( ...
and then, to get a value out of it that may or may not exist, have code like this
session.InterestCount = interestCountsDict.ContainsKey(session.Id)
? interestCountsDict[session.Id]
: 0;
With all the improvements to C#, is there a better way to do this without having to call ContainsKey first?