❔ Is it possible to use a generic type as another type outside of the generic class w/o reflection?
Hi, in C++ we can write code like the following:
This effectively allows a special type-of-types to exist that only exists as a way of tying together types into a singular type (
I was wondering if there was an equivalent in C# that didn't require reflection.
In essence, I would like to do something like this
to later consume like
which does like
Thanks!
This effectively allows a special type-of-types to exist that only exists as a way of tying together types into a singular type (
tuple<i,j,k>) while allowing access to the inner types i,j,k at compile time.I was wondering if there was an equivalent in C# that didn't require reflection.
In essence, I would like to do something like this
to later consume like
which does like
Thanks!