generics

Discussion in 'C#' started by sivaprasadnkv, Aug 28, 2007.

  1. sivaprasadnkv

    sivaprasadnkv New Member

    Joined:
    Aug 25, 2007
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    what is generic
    where we have to use that generics
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    Using Generics, we can create class templates that support any type. When we instantiate that class, we specify the type we want to use, and from that point on, our object is "locked in" to the type we chose. Something like Templates in C++
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice