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

◆ Attribute()

string? System.Security.SecurityElement.Attribute ( string name)
inline

Definition at line 474 of file SecurityElement.cs.

475 {
476 if (name == null)
477 {
478 throw new ArgumentNullException("name");
479 }
480 if (_attributes == null)
481 {
482 return null;
483 }
484 int count = _attributes.Count;
485 for (int i = 0; i < count; i += 2)
486 {
487 string a = (string)_attributes[i];
488 if (string.Equals(a, name))
489 {
490 string str = (string)_attributes[i + 1];
491 return Unescape(str);
492 }
493 }
494 return null;
495 }

References System.Security.SecurityElement._attributes, System.count, System.Collections.ArrayList.Count, System.str, and System.Unescape.