Click or drag to resize
TextHelperContentEquals Method
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: 8.2.23
Syntax
C#
public static bool ContentEquals(
	ref string text1,
	ref string text2,
	bool returnDifference = false
)

Parameters

text1
Type: SystemString
First text
text2
Type: SystemString
Second text
returnDifference (Optional)
Type: SystemBoolean
If true, the difference (remainders that don't match) are returned through original values

Return Value

Type: Boolean
See Also