Rakesh's Blog

Templates and Generics.

While trying to scope the support for Templates and Generics in Class Designer, I wanted to know the difference between them. I came across this posting by Brandon Bray, who is a Program Manager in C++. Hope you find it useful as well.

 

Type overloading of generics is allowed in C# and VB.

 

For example in C# overloading of the generic type is possible.

 

public class Bar <T> {}

 

public class Bar <R, S> {}

 

I recently heard from Brandon that C++ will not be able to support this for Whidbey.

Published Thursday, August 19, 2004 4:16 PM by rakeshna

Comments

No Comments
Anonymous comments are disabled

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker