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

◆ SearchForTextOfTag()

string? System.Security.SecurityElement.SearchForTextOfTag ( string tag)
inline

Definition at line 517 of file SecurityElement.cs.

518 {
519 if (tag == null)
520 {
521 throw new ArgumentNullException("tag");
522 }
523 if (string.Equals(_tag, tag))
524 {
525 return Unescape(_text);
526 }
527 if (_children == null)
528 {
529 return null;
530 }
531 foreach (SecurityElement child in Children)
532 {
533 string text = child?.SearchForTextOfTag(tag);
534 if (text != null)
535 {
536 return text;
537 }
538 }
539 return null;
540 }

References System.Security.SecurityElement._children, System.Security.SecurityElement._tag, System.Security.SecurityElement._text, System.Security.SecurityElement.Children, System.Security.SecurityElement.SearchForTextOfTag(), System.text, and System.Unescape.

Referenced by System.Security.Cryptography.SignatureDescription.SignatureDescription(), and System.Security.SecurityElement.SearchForTextOfTag().