c# - When accessing value-type properties of an object stored in a dynamic, does it cause boxing of those properties' values? -
consider following code... public class valueholder<t> { public t heldvalue{ get; set; } } when assigning x here, there of course no boxing. var intvalueholder = new valueholder<int>(){ heldvalue = 44 }; int x = intvalueholder.heldvalue; but in case valueholder stored in dynamic? there boxing when assigning heldvalue y? dynamic dynamicvalueholder = new valueholder<int>(){ heldvalue = 44 }; int y = dynamicvalueholder.heldvalue; i'm not sure mechanism dynamic member resolution i'm not sure how check this. note i not storing value-type in dynamic, examples this... dynamic x = 44; // 44 boxed ...is not i'm asking. in example i'm storing object in dynamic no boxing needed there, when access value-type property on object, that value-type property boxed? clears i'm after here. i quote this msdn document: " type dynamic behaves type object in circumstances. however, operations contain expressions of type dyna...