Generic in ASP.NET 2.0
-
what is Generic in ASP.NET 2.0 and what are it's advantages. Can anybody provide me a good article on this topic or make me understand??
adil kazmi
You can read here. The way I understand is that Generics save the cost of boxing and unboxing expenses. Generics can set the constrains to a particular things. Please let me know if i'm in wrong way. Thanks.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
You can read here. The way I understand is that Generics save the cost of boxing and unboxing expenses. Generics can set the constrains to a particular things. Please let me know if i'm in wrong way. Thanks.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
-
You can read here. The way I understand is that Generics save the cost of boxing and unboxing expenses. Generics can set the constrains to a particular things. Please let me know if i'm in wrong way. Thanks.
Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)
Michael Sync wrote:
Please let me know if i'm in wrong way.
No, you are right. Btw, generics can be used for more things, see http://blogs.msdn.com/kcwalina/archive/2007/06/07/GenericMethodsAsCasts.aspx[^] for some (there is interesting comment as well).
"Throughout human history, we have been dependent on machines to survive. Fate, it seems, is not without a sense of irony. " - Morpheus "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe