what are generics? Without generics what are the
disadvantages in 1.1?
Answer Posted / purushottam.ambati@gmail.
Generics is a concept introduced in .NET 2.0 and these are
just like templates in C++. Using generics we can create
classes,methods,events, delegates which work with any type
(like int,string,myclass etc). In .NET 2.0,
System.Collections.Generic namesapce was introduced and it
contains classes/interfaces related to generics. Advantages
are Performance, Code Reuse, Type Safety.
we can create generic classes (which work with any type)
in .NET 1.1 by using System.Object class. But, it requires
type casting, boxing and unboxing operations internally.
these operations are very expensive. so performace of
application will degrade.
| Is This Answer Correct ? | 18 Yes | 1 No |
Post New Answer View All Answers
What is viewbag?
What is latest version of .net framework?
Does .NET Framework support SAX?
explain how you can load related entities in ef (entity framework)?
i just want to write an exam regarding .net?plz give me information about taking a test?where to pay 4 d exam,exam centre?
what is client wins and store wins mode in entity framework concurrency?
Mention the core components of .net framework?
What is stateless model?
What is tempdata?
What is the use of display modes?
When using aspx view engine, to have a consistent look and feel, across all pages of the application, we can make use of asp.net master pages. What is asp.net master pages equivalent, when using razor views?
What is model first? : Entity framework
Is it possible to share a view across multiple controllers?
How large is the .net framework 3.0? Does this change make the release larger?
What is .net architecture and framework?