Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Equals() [1/6]

override bool System.String.Equals ( [NotNullWhen(true)] object? obj)
inline

Definition at line 521 of file String.cs.

522 {
523 if (this == obj)
524 {
525 return true;
526 }
527 if (!(obj is string text))
528 {
529 return false;
530 }
531 if (Length != text.Length)
532 {
533 return false;
534 }
535 return EqualsHelper(this, text);
536 }
static bool EqualsHelper(string strA, string strB)
Definition String.cs:110

References System.String.EqualsHelper(), System.String.Length, System.obj, and System.text.

Referenced by System.String.operator!=(), and System.String.operator==().