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

◆ FindField()

DataColumn System.Data.XSDSchema.FindField ( DataTable table,
string field )
inlinepackage

Definition at line 1066 of file XSDSchema.cs.

1067 {
1068 bool flag = false;
1069 string text = field;
1070 if (field.StartsWith('@'))
1071 {
1072 flag = true;
1073 text = field.Substring(1);
1074 }
1075 text = text.Split(':')[^1];
1077 DataColumn dataColumn = table.Columns[text];
1078 if (dataColumn == null)
1079 {
1080 throw ExceptionBuilder.InvalidField(field);
1081 }
1083 if (flag2 != flag)
1084 {
1085 throw ExceptionBuilder.InvalidField(field);
1086 }
1087 return dataColumn;
1088 }
static ? string DecodeName(string? name)
Definition XmlConvert.cs:55

References System.Data.DataTable.Columns, System.Xml.XmlConvert.DecodeName(), System.Xml.Dictionary, System.Data.ExceptionBuilder.InvalidField(), and System.text.

Referenced by System.Data.XSDSchema.BuildKey().