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

◆ StoreArrayElement()

void System.Xml.Serialization.CodeGenerator.StoreArrayElement ( object obj,
object arrayIndex,
object value )
inlinepackage

Definition at line 516 of file CodeGenerator.cs.

517 {
519 if (variableType == typeof(Array))
520 {
521 Load(obj);
522 Call(typeof(Array).GetMethod("SetValue", new Type[2]
523 {
524 typeof(object),
525 typeof(int)
526 }));
527 return;
528 }
529 Type elementType = variableType.GetElementType();
530 Load(obj);
533 {
535 }
536 Load(value);
539 {
541 }
542 else
543 {
545 }
546 }
void ConvertValue(Type source, Type target)
static bool IsStruct(Type objType)

References System.arrayIndex, System.Reflection.Emit.Call, System.Xml.Serialization.CodeGenerator.ConvertValue(), System.Xml.Dictionary, System.elementType, System.Xml.Serialization.CodeGenerator.GetVariableType(), System.Xml.Serialization.CodeGenerator.IsStruct(), System.Reflection.Emit.Ldelema, System.Xml.Serialization.CodeGenerator.Load(), System.obj, System.Reflection.Emit.Stelem, System.Reflection.Emit.Stobj, and System.value.