structs are ValueTypes that are passed by value, which means that you only pass copies of the entire structure, not a reference to the original object.
So when you pass it to info.SetValue(_priceStruct, 32, null) , the method passed to the method and mutated, so the original object does not change at all. Another reason why mutable structures are evil.
Botz3000
source share