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

◆ ParseEnum()

int System.Xml.Schema.XsdBuilder.ParseEnum ( string value,
string attributeName,
string[] values )
inlineprivate

Definition at line 2142 of file XsdBuilder.cs.

2143 {
2144 string text = value.Trim();
2145 for (int i = 0; i < values.Length; i++)
2146 {
2147 if (values[i] == text)
2148 {
2149 return i + 1;
2150 }
2151 }
2153 return 0;
2154 }
static string Sch_InvalidXsdAttributeValue
Definition SR.cs:576
Definition SR.cs:7
void SendValidationEvent(string code, string arg0, string arg1, string arg2)

References System.SR.Sch_InvalidXsdAttributeValue, System.Xml.Schema.XsdBuilder.SendValidationEvent(), System.text, System.value, and System.values.