TextHelper.ContentEquals Method |
Checks if two text contents are equal. Ignores extra white spaces, and is case insensitive.
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntaxpublic static bool ContentEquals(
ref string text1,
ref string text2,
bool returnDifference = false,
TextNormalizationSettings settings = null
)
Parameters
- text1
- Type: System.String
First text - text2
- Type: System.String
Second text - returnDifference (Optional)
- Type: System.Boolean
If true, the difference (remainders that don't match) are returned through original values - settings (Optional)
- Type: CMS.Helpers.TextNormalizationSettings
If true, the input texts are normalized to avoid mismatch on whitespaces
Return Value
Type:
Boolean
ExceptionsException | Condition |
---|
ArgumentNullException | When text paramater is null |
See Also