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

◆ SearchForChildByTag()

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

Definition at line 497 of file SecurityElement.cs.

498 {
499 if (tag == null)
500 {
501 throw new ArgumentNullException("tag");
502 }
503 if (_children == null)
504 {
505 return null;
506 }
507 foreach (SecurityElement child in _children)
508 {
509 if (child != null && string.Equals(child.Tag, tag))
510 {
511 return child;
512 }
513 }
514 return null;
515 }

References System.Security.SecurityElement._children, and System.Security.SecurityElement.Tag.