Skip to content

String Options

GregFinzer edited this page Dec 20, 2017 · 2 revisions

When comparing strings or StringBuilder types, perform a case sensitive comparison. The default is true.

CompareLogic compare = new CompareLogic();
compare.Config.CaseSenstive = true;

If true, string.empty and null will be treated as equal. The default is false.

CompareLogic compare = new CompareLogic();
compare.Config.TreatStringEmptyAndNullTheSame = false;