答案 0 :(得分:1)
Sitecore用于Equals
,CaseInsensitivelyEquals
,NotEqual
和NotCaseInsensitivelyEquals
运营商的代码下方:
case StringConditionOperator.Equals:
return first == second;
case StringConditionOperator.CaseInsensitivelyEquals:
return string.Compare(first, second, System.StringComparison.CurrentCultureIgnoreCase) == 0;
case StringConditionOperator.NotEqual:
return first != second;
case StringConditionOperator.NotCaseInsensitivelyEquals:
return string.Compare(first, second, System.StringComparison.CurrentCultureIgnoreCase) != 0;