Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hai sir,

How and where to use generics in real time and as well as delegates in c#.

Would you suggest give some basic example for real time experience
Posted
Comments
Andreas Gieriet 18-Mar-13 1:50am    
What did you find out so far?
E.g. write a class with a generic parameter where you make a field of that class of that generic type. What can you say about this if you use it compared to a sibling class that uses no generic, but defined the field of type object?

Delegates: have you looked up in google what they are good for?

Cheers
Andi
Sergey Alexandrovich Kryukov 18-Mar-13 1:59am    
Real time? Aha, now... Do you have an idea what is "real time"?
—SA
Deenuji 18-Mar-13 4:04am    
sir i have one doubt???? shall i ask.....
OriginalGriff 18-Mar-13 4:20am    
Please stop trying to get attention to your question.
It makes you sound like a whining child and will probably start to annoy people if you aren't careful.

1 solution

Generics is a big subject - far too large to cover in a small textbox.
Did you try google? I ask because a very simple query took me straight to MSDN: An Introduction to C# Generics[^]

A second, equally simple google gave me the same for delegates: Delegates (C# Programming Guide)[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900