Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is MVVM design pattern?

1032


Is razor a server side?

973


How does �side by side� work for the .net framework 3.0?

968


explain what does .edmx file contains?

1067


How we can add the CSS in ASP.Net MVC?

1027


what is entity sql?

1086


How to bind table colum with gridview column?

1136


Does Tempdata hold the data for other request in ASP.Net MVC?

966


Is .net core faster than .net framework?

1083


What are Code Blocks in Views?

1113


Explain the role of assembly in the .net framework.

1010


What is attribute routing in mvc?

1119


what is use of entity container?

1058


Why we need a separate mobile project template, while we can render our web application in mobile ?

1149


mention what is the key advantage of using entity framework or ef?

1012