Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Generic in C#

Generic in C#

Scheduled Pinned Locked Moved C#
csharpdata-structureshelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vcorn
    wrote on last edited by
    #1

    hi, i got error when compile the code that implement generic in C# like this : public class Stack i read msdn that C# support generic but why i get compile error how to solve this? Thanks

    S 1 Reply Last reply
    0
    • V vcorn

      hi, i got error when compile the code that implement generic in C# like this : public class Stack i read msdn that C# support generic but why i get compile error how to solve this? Thanks

      S Offline
      S Offline
      Stefan Troschuetz
      wrote on last edited by
      #2

      C# doesn't support Generic, at least not yet. This feature will be included in the upoming C# 2.0 standard. Take a look at this article from MSDN magazine for some more information about C# 2.0. www.troschuetz.de

      V 1 Reply Last reply
      0
      • S Stefan Troschuetz

        C# doesn't support Generic, at least not yet. This feature will be included in the upoming C# 2.0 standard. Take a look at this article from MSDN magazine for some more information about C# 2.0. www.troschuetz.de

        V Offline
        V Offline
        vcorn
        wrote on last edited by
        #3

        just realize it is for C# 2.0 thanks Stefan

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups