in Older/ReSharper20181CSharp/ValueTracking/PatternMatching.cs [33:39]
public static bool IsOdd (object o)
{
if (o is int i || o is string s && int.TryParse (s, out i))
return i % 2 == 1;
throw new Exception ($"Cannot parse number from {o}.");
}