2
Answers

generics question

George George

George George

16y
2.2k
1

Hello everyone,


I am migrated from C++ to C#. I am reading through about C++ template class and C# generics' differences,

http://msdn.microsoft.com/en-us/library/c6cyy67b(VS.80).aspx

3 questions,

1.

"At the implementation level, the primary difference is that C# generic type substitutions are performed at runtime and generic type information is thereby preserved for instantiated objects."

"preserved for instantiated objects" means?

2.

"In C#, a generic type parameter cannot itself be a generic, although constructed types can be used as generics. C++ does allow template parameters."

"constructed types" means?

3.

What means "C# disallows this; the only language constructs allowed are those that can be deduced from the constraints."?


thanks in advance,
George

Answers (2)