Forcing a (generic) value type to be a reference
I have a struct with some fields. One of the fields is of a generic type. The generic type could be either a reference type or a value type. I want to force that it is stored as a reference internally, to avoid that the struct gets too large. struct Foo<T> { T field; // should be a reference } I know I could use object or T[], but...