I'm voting to close this question as off-topic because it is about statistics / Mathematics instead of programming or software development. — Pang1 min ago
I answered but since this is about server software I think it should have been posted on the superuser or webmasters stackexchange site. — Jim W32 secs ago
I'm voting to close this question as off-topic because it is about boolean algebra / Mathematics instead of programming or software development. — Pang54 secs ago
I'm voting to close this question as off-topic because it is about probability and Mathematics instead of programming or software development. — Pang54 secs ago
I'm voting to close this question as off-topic because it is about statistics and Mathematics instead of programming or software development. — Pang44 secs ago
I'm voting to close this question as off-topic because it is about statistics and Mathematics instead of programming or software development. — Pang57 secs ago
Which will clearly fail if either string is null. At the time, I didn't have time to fix the extension method properly (it was in a library that would have required a redeploy), and I wound up with a local function:
Which clearly won't fail, even as an extension method.
The environment that we're working in has some constraints. It uses CSScript, which doesn't understand things like object?.Property, which would have come in really handy here.
Extension methods suddenly seemed like a risk, even though they probably aren't.
Most of what we're currently doing in the way of string comparisons is Invariant Culture. When we go multi-lingual, I'll probably switch to a base class strategy.
Or a factory. But each country has its own specialized services anyway.