Results 1 to 3 of 3

Thread: how check if a type is part of an Enum ?

  1. #1

    Thread Starter
    Hyperactive Member fabianus's Avatar
    Join Date
    Sep 2004
    Location
    Paris
    Posts
    402

    Question how check if a type is part of an Enum ?

    Hello !

    I would like to know how to check if a type (for example System.DayOfWeek) is an Enum.

    Thanks for any help!

    Regards,
    Fabian

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: how check if a type is part of an Enum ?

    Would the Type.IsEnum property help do you think? Someone hasn't been reading the MSDN doco.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Hyperactive Member fabianus's Avatar
    Join Date
    Sep 2004
    Location
    Paris
    Posts
    402

    Re: how check if a type is part of an Enum ?

    ahhhhhmmmmmm what's that again msdn ?
    Once you give the answers, I know where to look for it

    Thanks again ! You're better than msdn...

    Regards,
    Fabian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width