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 viewmodel in mvc?

998


Mention the core components of .net framework?

919


What is mapping in entity framework? : Entity framework

918


What is the meaning of unobtrusive javascript? Explain us by any practical example.

943


What is the need of Action Filters in ASP.Net MVC

1036


How to Redirect Tracing to a File

988


What “beforFilter()”,“beforeRender” and “afterFilter” functions do in Controller?

961


what is use of entitydatasource control?

1024


What is NonActionAttribute ?

967


Mention what is the difference between “ActionResult” and “ViewResult” ?

994


Explain tempdata in asp.net mvc?

1058


How do you assign a value to a complex number 7 how has exception hand changed in .net framework 4.0?

882


How to return the JSON from action method in ASP.Net MVC?

1154


Explain the methods used to render the views in ASP.Net MVC?

1056


mention what is code first approach and model first approach in entity framework?

1057