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

Explain tempdata in asp.net mvc?

1132


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

983


what do you mean by table-per-type?

1105


mention in what all scenarios entity framework can be applicable?

1416


What are the new enhancements done in default project template of asp.net mvc 4?

1050


Why should we go for entity framework?

1019


What is Layout in ASP.Net MVC?

1086


what is .edmx file and what it contains?

1058


Explain what is routing?

994


what is code first approach?

1141


What is Dependency Injection in ASP.Net MVC

1060


what is model first approach?

1134


What is the greatest advantage of using asp.net mvc over asp.net webforms?

1017


what do you mean by navigation property?

1061


Possible ways to prevent xss attacks on mvc application?

1011