Is there something similar to this C++ template?
template class B { int f() { return A; } }
I want to mak
C# generics are specialized at run-time, whereas C++ templates are processed at compile-time to make an entirely new type. Given this, the runtime simply doesn't have the features to process non-type parameters (it's not just a C# issue).