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

◆ ILGenParamsReadSource() [2/2]

void System.Xml.Serialization.XmlSerializationReaderILGen.ILGenParamsReadSource ( string paramsReadSource,
bool value )
inlineprivate

Definition at line 2933 of file XmlSerializationReaderILGen.cs.

2934 {
2935 Regex regex = XmlSerializationILGen.NewRegex("paramsRead\\[(?<index>[0-9]+)\\]");
2937 if (match.Success)
2938 {
2939 ilg.StoreArrayElement(ilg.GetLocal("paramsRead"), int.Parse(match.Groups["index"].Value, CultureInfo.InvariantCulture), value);
2940 return;
2941 }
2942 throw Globals.NotSupported("Unexpected: " + paramsReadSource);
2943 }
static CultureInfo InvariantCulture
LocalBuilder GetLocal(string name)
void StoreArrayElement(object obj, object arrayIndex, object value)
XmlSerializationILGen(TypeScope[] scopes, string access, string className)

References System.Globalization.CultureInfo.InvariantCulture, System.match, System.Xml.Serialization.XmlSerializationILGen.NewRegex(), System.Xml.Serialization.Globals.NotSupported(), and System.value.