C# String Equals. String type. String.Equals compares strings. It is not the same as the Compare and CompareTo methods. Equals tests strings for equality.
www.dotnetperls.com