Why is TypedReference.MakeTypedReference so constrained?
问题 I've finally understood the usage of the TypedReference.MakeTypedReference method, but why are the arguments so limited? The underlying private InternalMakeTypedReference(void* result, object target, IntPtr[] flds, RuntimeType lastFieldType) can do a lot more things than the MakeTypedReference that limits the field array to have elements and the field types to be non-primitive. I've made a sample usage code that shows the full possibility of it: private static readonly MethodInfo