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

◆ ToBoolean() [1/2]

static bool System.Xml.XmlConverter.ToBoolean ( byte[] buffer,
int offset,
int count )
inlinestatic

Definition at line 85 of file XmlConverter.cs.

86 {
87 if (count == 1)
88 {
89 switch (buffer[offset])
90 {
91 case 49:
92 return true;
93 case 48:
94 return false;
95 }
96 }
98 }
static bool ToBoolean(string value)

References System.buffer, System.count, System.offset, System.Xml.XmlConverter.ToBoolean(), and System.ToString.