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 the use of the default route?

1062


What is the meaning of unobtrusive javascript?

1058


What is entitytypes? : Entity framework

1042


If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

2586


How we can call a javascript function on the change of a dropdown list in mvc?

1057


what is deferred loading(lazy loading)?

1029


Where is the new functionality in the .net framework 3.0 (such as wcf, wf, wpf, and cardspace) installed to? Is that different from where the .net framework 2.0 is installed to?

1000


What is controllercontext?

1049


What is razor code?

1084


What is needed for running an application built on winfx on the .net framework 3.0?

965


Which .net framework is installed?

975


How to change the action name in mvc?

993


What is iobjectset? : Entity framework

1018


What is the use of web api ? Why web api needed, if you have already restful services using wcf ?

1011


Is it possible to share a view across multiple controllers?

975