How to set referenced variable value?

FieldInfo field = data2.GetType().GetField(temp[0], BindingFlags.Instance | BindingFlags.NonPublic);
field.SetValue(data2, int.Parse(temp[1]) - 10);
I have this piece of code and naturally the variable is not changed only the reference of the variable but I can’t figure out what I need to use to change the variable. Can’t get SetValueDirect to work if that would be the solution. Thanks.

Is FieldInfo a class you created?
What does “SetValue” do?