Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
System.Security.SecurityElement Class Referencesealed

Public Member Functions

 SecurityElement (string tag)
 
 SecurityElement (string tag, string? text)
 
void AddAttribute (string name, string value)
 
void AddChild (SecurityElement child)
 
bool Equal ([NotNullWhen(true)] SecurityElement? other)
 
SecurityElement Copy ()
 
override string ToString ()
 
stringAttribute (string name)
 
SecurityElementSearchForChildByTag (string tag)
 
stringSearchForTextOfTag (string tag)
 

Static Public Member Functions

static bool IsValidTag ([NotNullWhen(true)] string? tag)
 
static bool IsValidText ([NotNullWhen(true)] string? text)
 
static bool IsValidAttributeName ([NotNullWhen(true)] string? name)
 
static bool IsValidAttributeValue ([NotNullWhen(true)] string? value)
 
static ? string Escape (string? str)
 
static ? SecurityElement FromString (string xml)
 

Package Functions

void AddAttributeSafe (string name, string value)
 

Package Attributes

string _tag
 
string _text
 
ArrayList _attributes
 

Properties

string Tag [get, set]
 
HashtableAttributes [get, set]
 
stringText [get, set]
 
ArrayListChildren [get, set]
 

Private Member Functions

void ToString (object obj, Action< object, string > write)
 

Static Private Member Functions

static string GetEscapeSequence (char c)
 
static string GetUnescapeSequence (string str, int index, out int newIndex)
 
static string Unescape (string str)
 

Private Attributes

ArrayList _children
 

Static Private Attributes

static readonly char[] s_tagIllegalCharacters = new char[3] { ' ', '<', '>' }
 
static readonly char[] s_textIllegalCharacters = new char[2] { '<', '>' }
 
static readonly char[] s_valueIllegalCharacters = new char[3] { '<', '>', '"' }
 
static readonly char[] s_escapeChars = new char[5] { '<', '>', '"', '\'', '&' }
 
static readonly string[] s_escapeStringPairs = new string[10] { "<", "&lt;", ">", "&gt;", "\"", "&quot;", "'", "&apos;", "&", "&amp;" }
 

Detailed Description

Definition at line 7 of file SecurityElement.cs.


The documentation for this class was generated from the following file: