what is generics?
can u explain 5 to 6 examples on generics that covers
class,method,structure,list,delegates?

Answer Posted / pushparaj pentakota

collections allows you to store any type of value in it but generics stops you to enter any type of value in it it allows you for only particular type values.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between new and override in c#?

451


Can you have more than one namespace in c#?

486


How do you declare an arraylist?

490


Can I get the name of a type at runtime?

527


Why do we use lambda expression in c#?

500






What is namespace in oop?

486


What is a static field?

504


What method is used to sort the elements of the array in descending order?

566


What are the benefits of using windows services:

543


What is data bind in c#?

513


What is a concrete class in c#?

530


How do I automate my desktop application?

498


Is it possible to inherit multiple interfaces?

539


What does get set mean in c#?

491


Difference between debug.write and trace.write?

519