1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,283
    Likes Received:
    364
    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