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

◆ ParseBlockFinalEnum()

int System.Xml.Schema.XsdBuilder.ParseBlockFinalEnum ( string value,
string attributeName )
inlineprivate

Definition at line 2171 of file XsdBuilder.cs.

2172 {
2173 int num = 0;
2174 string[] array = XmlConvert.SplitString(value);
2175 for (int i = 0; i < array.Length; i++)
2176 {
2177 bool flag = false;
2178 for (int j = 0; j < s_derivationMethodStrings.Length; j++)
2179 {
2181 {
2183 {
2185 return 0;
2186 }
2188 flag = true;
2189 break;
2190 }
2191 }
2192 if (!flag)
2193 {
2195 return 0;
2196 }
2197 if (num == 255 && value.Length > 4)
2198 {
2200 return 0;
2201 }
2202 }
2203 return num;
2204 }
static string Sch_InvalidXsdAttributeValue
Definition SR.cs:576
Definition SR.cs:7
void SendValidationEvent(string code, string arg0, string arg1, string arg2)
static readonly int[] s_derivationMethodValues
static readonly string[] s_derivationMethodStrings

References System.array, System.Xml.Dictionary, System.Xml.Schema.XsdBuilder.s_derivationMethodStrings, System.Xml.Schema.XsdBuilder.s_derivationMethodValues, System.SR.Sch_InvalidXsdAttributeValue, System.Xml.Schema.XsdBuilder.SendValidationEvent(), System.Xml.XmlConvert.SplitString(), and System.value.