What are generics? why it is used?
architecture of ASP.NET?

Answer Posted / krishna rathi

Generica provide type parameters T for class , interfaces,
delagates or methods.
By using generic type parameter T their
is less need of boxing / un boxing in client code.

Example : public class Genericlist <T>{
}

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the full form of asp.net?

727


What is AutoEventWireup attribute for ?

793


Which is the best institute to learn Microsoft Technologies and the faculty if you Know?

1824


How to register exception filter globally?

792


What is the asp.net control toolkit?

779


Hello, Using Visual Studio 2005 (VB) I am working to create a Web Site implementing the following: Within a gridView I have placed a dropdownlist control with a DataSourceID="SDSLkupList". SDSLkupList is a sqlDataSource used to store a lookup list for dropdownlist translation from ID to text. SDSLkupList contains the translation text and other fields related to the dropdown selection ID. (Thought it would be efficient to get everything at the same time.) I would like to provide the user the ability to select from the dropdownlist and, based on the selection, use labels to list related columns stored on the SDSLkupList in separate gridView columns. I have read that SqlDataSources are not meant to be used for individual controls. Since SDSLkupList contains all related information, is there a way to do a find using the dropdownlist selectedValue? (I was not able to discover one.) Otherwise, what should I use? It would need to set the labels on the gridView DataRowBound event as well as the SelectedIndexChanged events. Has anyone done this? Any help would be appreciated. Thanks in Advance. Neal

1605


What’s the difference between asp.net web forms and asp.net mvc?

802


What is the basic purpose of the required field validator? How can you use a required field validator to check that the user changes the initial value of a text box? a listbox?

1641


Explain parts of assembly?

737


8. Why do you want to work here?

1666


How does u get record no from 5 to 15 from a dataset of 100 records?

726


What is caching? What are different ways of caching in asp.net?

911


Explain the main function of url routing system in asp.net mvc? : asp.net mvc

701


Demonstrate Render and PreRender?

816


Is it possible to write code in many languages in one asp.net project?

768