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. Other Discussions
  3. The Weird and The Wonderful
  4. Not a big one but...

Not a big one but...

Scheduled Pinned Locked Moved The Weird and The Wonderful
6 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.
  • V Offline
    V Offline
    venomation
    wrote on last edited by
    #1

    Seen some code that looks like:

    [RangeValidator(min:-128,max:128)]
    public sbyte AdditionalData{get;set;}

    I see at least two problems with this :laugh:

    A P 2 Replies Last reply
    0
    • V venomation

      Seen some code that looks like:

      [RangeValidator(min:-128,max:128)]
      public sbyte AdditionalData{get;set;}

      I see at least two problems with this :laugh:

      A Offline
      A Offline
      andyharglesis
      wrote on last edited by
      #2

      What's wrong with my code??

      S F R 3 Replies Last reply
      0
      • A andyharglesis

        What's wrong with my code??

        S Offline
        S Offline
        soap brain
        wrote on last edited by
        #3

        andyharglesis wrote:

        What's wrong with my code??

        It thinks it looks good without a shirt on. Oh, wait...

        1 Reply Last reply
        0
        • A andyharglesis

          What's wrong with my code??

          F Offline
          F Offline
          Firo Atrum Ventus
          wrote on last edited by
          #4

          You know, admitting that I write the code in the hall of shame is in my "top 100 things not to do" list :-D

          A hidden needle is way more effective than an unsheathed sword.

          1 Reply Last reply
          0
          • A andyharglesis

            What's wrong with my code??

            R Offline
            R Offline
            Ra one
            wrote on last edited by
            #5

            Is everything O.K. If not validate it........Just Kidding ;)

            1 Reply Last reply
            0
            • V venomation

              Seen some code that looks like:

              [RangeValidator(min:-128,max:128)]
              public sbyte AdditionalData{get;set;}

              I see at least two problems with this :laugh:

              P Offline
              P Offline
              Philippe Mori
              wrote on last edited by
              #6

              Well 128 is not valid for a signed byte... What would be the second problem ?

              Philippe Mori

              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