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

◆ Update()

override void System.Linq.Expressions.Interpreter.IndexMethodByRefUpdater.Update ( InterpretedFrame frame,
object value )
inline

Definition at line 22 of file IndexMethodByRefUpdater.cs.

23 {
24 object[] array = new object[_args.Length + 1];
25 for (int i = 0; i < array.Length - 1; i++)
26 {
27 array[i] = frame.Data[_args[i].Index];
28 }
29 array[^1] = value;
30 object obj = ((!_obj.HasValue) ? null : frame.Data[_obj.GetValueOrDefault().Index]);
31 try
32 {
34 }
36 {
37 ExceptionHelpers.UnwrapAndRethrow(exception);
39 }
40 }
object? Invoke(object? obj, object?[]? parameters)

References System.Linq.Expressions.Interpreter.IndexMethodByRefUpdater._args, System.Linq.Expressions.Interpreter.IndexMethodByRefUpdater._indexer, System.Linq.Expressions.Interpreter.IndexMethodByRefUpdater._obj, System.array, System.Linq.Expressions.Interpreter.InterpretedFrame.Data, System.exception, System.Linq.Expressions.Interpreter.LocalDefinition.Index, System.Reflection.MethodBase.Invoke(), System.obj, System.Dynamic.Utils.ContractUtils.Unreachable, System.Linq.Expressions.Interpreter.ExceptionHelpers.UnwrapAndRethrow(), and System.value.