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. Enum and generics

Enum and generics

Scheduled Pinned Locked Moved C#
csharphelpquestionhtmlcom
24 Posts 5 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.
  • P PIEBALDconsult

    Oh, and... a few months ago I asked about it on MSDN and Jon Skeet said he'd ask whether or not an enum constraint might be in the future, he later reported... "maybe". I suspect there are a lot more important things concerning them. I think maybe we should start a letter campaign.

    N Offline
    N Offline
    N a v a n e e t h
    wrote on last edited by
    #21

    PIEBALDconsult wrote:

    I asked about it on MSDN and Jon Skeet said he'd ask whether or not an enum constraint might be in the future,

    Ohh, so what could replace enums ? Jon Skeet - I love that guy. He got indepth knowledge on the subject and very helping too. He has a book out "C# in Depth". I got a copy, it's worth reading.

    All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

    P 1 Reply Last reply
    0
    • N N a v a n e e t h

      Scott, Thanks. I figured it out. Great article though

      All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

      S Offline
      S Offline
      Scott Dorman
      wrote on last edited by
      #22

      N a v a n e e t h wrote:

      Thanks. I figured it out. Great article though

      You're welcome. Glad you liked the article.

      Scott Dorman

      Microsoft® MVP - Visual C# | MCPD President - Tampa Bay IASA [Blog][Articles][Forum Guidelines]


      Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

      1 Reply Last reply
      0
      • N N a v a n e e t h

        PIEBALDconsult wrote:

        I asked about it on MSDN and Jon Skeet said he'd ask whether or not an enum constraint might be in the future,

        Ohh, so what could replace enums ? Jon Skeet - I love that guy. He got indepth knowledge on the subject and very helping too. He has a book out "C# in Depth". I got a copy, it's worth reading.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #23

        I meant it's possible that a future C# compiler will allow where T : enum I'm not holding my breath, but apparently the team who can make it happen know there's some demand for it.

        N 1 Reply Last reply
        0
        • P PIEBALDconsult

          I meant it's possible that a future C# compiler will allow where T : enum I'm not holding my breath, but apparently the team who can make it happen know there's some demand for it.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #24

          PIEBALDconsult wrote:

          I meant it's possible that a future C# compiler will allow where T : enum

          I misunderstood you, now it's clear.

          PIEBALDconsult wrote:

          know there's some demand for it.

          Yeah. Let's hope it would come in the future versions.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          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