Try my app Expense Manager @ google play and amazon store.

Sunday, July 1, 2012

Compare C# .NET Generics and C++ Templates

How does C#.NET Generics and C++ Templates compare?

C# generics and templates in C++ are more or less similar syntactically.

C# Generic types are strong typed. C++ Templates are loosely typed.
C# Generic types are instantiated at the runtime. C++ templates are instantiated at the compile time.
C# Generic types do not permit the type parameters to have default values. C++ templates do.

No comments:

Post a Comment

Follow by Email

Google+ Badge