C# code for comparing boolean "pivot" expressions (it's a coapp thing, don't worry about it)