Click or drag to resize
TextHelperContentEquals Method (String, String, Boolean, Boolean)

Note: This API is now obsolete.

Checks if two text contents are equal. Ignores extra white spaces, and is case insensitive.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
[ObsoleteAttribute("Use ContentEquals with TextNormalizationSettings")]
public static bool ContentEquals(
	ref string text1,
	ref string text2,
	bool returnDifference,
	bool normalizeWhiteSpaces
)

Parameters

text1
Type: SystemString
First text
text2
Type: SystemString
Second text
returnDifference
Type: SystemBoolean
If true, the difference (remainders that don't match) are returned through original values
normalizeWhiteSpaces
Type: SystemBoolean
If true, the input texts are normalized to avoid mismatch on whitespaces

Return Value

Type: Boolean
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen text paramater is null
See Also