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. Web Development
  3. ASP.NET
  4. How to check a number is hexadecimal in c#

How to check a number is hexadecimal in c#

Scheduled Pinned Locked Moved ASP.NET
csharptutorial
17 Posts 6 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.
  • S Sathesh Sakthivel

    hey tell it in Plain english. I could not understand.

    Regards, Satips.:rose:

    V Offline
    V Offline
    Vasudevan Deepak Kumar
    wrote on last edited by
    #8

    [Translating sonia gupta -- with censorship]

    satips ji...Kal christian graus ko to aap bata rahay thay ki yeh language hindi hai.

    Mr. Satips... Yesterday you were telling to Christian Graus that this language is Hindi.

    Vasudevan Deepak Kumar Personal Homepage Tech Gossips

    1 Reply Last reply
    0
    • S Sonia Gupta

      satips ji...Kal christian graus ko to aap bata rahay thay ki yeh language hindi hai.

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #9

      If he/she is not interested in Reserach ask him to go home. Don't allow him to code. Not knowing this simple things how he could be able to develop an Application.

      Regards, Satips.:rose:

      V 1 Reply Last reply
      0
      • R Rickey_Me

        How to check a number is hexadecimal or not using c#

        Rickey

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #10

        You may need to use the NumberStyles enumeration. Here is a tutorial: http://support.microsoft.com/kb/835454[^]

        Vasudevan Deepak Kumar Personal Homepage Tech Gossips

        S 1 Reply Last reply
        0
        • S Sathesh Sakthivel

          If he/she is not interested in Reserach ask him to go home. Don't allow him to code. Not knowing this simple things how he could be able to develop an Application.

          Regards, Satips.:rose:

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #11

          There are a lot of such guys like these lazy jerks who depend on others to do the code and they rest back in the restroom. :-D

          Vasudevan Deepak Kumar Personal Homepage Tech Gossips

          S 1 Reply Last reply
          0
          • V Vasudevan Deepak Kumar

            You may need to use the NumberStyles enumeration. Here is a tutorial: http://support.microsoft.com/kb/835454[^]

            Vasudevan Deepak Kumar Personal Homepage Tech Gossips

            S Offline
            S Offline
            Sathesh Sakthivel
            wrote on last edited by
            #12

            Don't spoon feed him/her vasudevan.

            Regards, Satips.:rose:

            V 1 Reply Last reply
            0
            • V Vasudevan Deepak Kumar

              There are a lot of such guys like these lazy jerks who depend on others to do the code and they rest back in the restroom. :-D

              Vasudevan Deepak Kumar Personal Homepage Tech Gossips

              S Offline
              S Offline
              Sathesh Sakthivel
              wrote on last edited by
              #13

              Exactly. any how the companys are providing lot of resources to get their work done. how they got the job and how they will shine in their life. Quite Amazing .

              Regards, Satips.:rose:

              V 1 Reply Last reply
              0
              • S Sathesh Sakthivel

                Don't spoon feed him/her vasudevan.

                Regards, Satips.:rose:

                V Offline
                V Offline
                Vasudevan Deepak Kumar
                wrote on last edited by
                #14

                :)

                Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                1 Reply Last reply
                0
                • S Sathesh Sakthivel

                  Exactly. any how the companys are providing lot of resources to get their work done. how they got the job and how they will shine in their life. Quite Amazing .

                  Regards, Satips.:rose:

                  V Offline
                  V Offline
                  Vasudevan Deepak Kumar
                  wrote on last edited by
                  #15

                  Satips wrote:

                  Exactly. any how the companys are providing lot of resources to get their work done.

                  They account purchasing an elephant to gift to thier Managing Director on his birthday to tally the bills. :)

                  Satips wrote:

                  how they got the job

                  The crooked referral systems, large scale walkin and job mela.

                  Satips wrote:

                  how they will shine in their life.

                  Never ever, at least with such current attitude. They are in sunset phase.

                  Vasudevan Deepak Kumar Personal Homepage Tech Gossips

                  1 Reply Last reply
                  0
                  • R Rickey_Me

                    How to check a number is hexadecimal or not using c#

                    Rickey

                    B Offline
                    B Offline
                    Blumen
                    wrote on last edited by
                    #16

                    Hi, Check this article: http://www.codeproject.com/csharp/hexencoding.asp?df=100&forumid=15401&exp=0&select=1295897#xx1295897xx[^] Also check the comments at the bottom of that article by readers. Regards, Blumen

                    1 Reply Last reply
                    0
                    • R Rickey_Me

                      How to check a number is hexadecimal or not using c#

                      Rickey

                      D Offline
                      D Offline
                      dekart_roo
                      wrote on last edited by
                      #17

                      Either you've worded this question in a slightly misleading way, or you're not up on your number systems. If you're really asking us how to tell if a number is hexadecimal, that's kind of a moot point. All numbers can be represented as a hexidecimal value. It's not a way of storing or encoding a number persay (with exceptions to the more complex storage systems such as the IEEE floating point,) so much a means of viewing it. If you want to express a number as a hex value, look into .net format strings. If you're asking how to check a string to see if it represents a hexidecimal value, then I suggest looking into regular expressions. ^0x[\da-fA-F]{1,}$ should suffice as an expression to check against. Though, I'll often append a \s{0,} to either the front or back, to add forgiveness to user input. -Roo

                      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