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. A gem.

A gem.

Scheduled Pinned Locked Moved The Weird and The Wonderful
ruby
15 Posts 10 Posters 2 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.
  • D Derek Viljoen

    ";".ToCharArray() 'nuf said.

    T Offline
    T Offline
    Tsuda Kageyu
    wrote on last edited by
    #4

    This is what I have seen years ago.

    a.ToString().ToString();

    Yeah... he was just tired... couldn't prevent a prank by Intellisence.

    P N J 3 Replies Last reply
    0
    • T Tsuda Kageyu

      This is what I have seen years ago.

      a.ToString().ToString();

      Yeah... he was just tired... couldn't prevent a prank by Intellisence.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #5

      The one I loathe is

      string s = "Hello";
      string x = s.ToString();

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      1 Reply Last reply
      0
      • T Tsuda Kageyu

        This is what I have seen years ago.

        a.ToString().ToString();

        Yeah... he was just tired... couldn't prevent a prank by Intellisence.

        N Offline
        N Offline
        NormDroid
        wrote on last edited by
        #6

        or even ".".ToString();

        :wtf:

        Two heads are better than one.

        1 Reply Last reply
        0
        • D Derek Viljoen

          Did I mention that this was an argument to string.Split() which is defined to take (params char[])? They could have simply typed: ';'

          L Offline
          L Offline
          leppie
          wrote on last edited by
          #7

          Derek Viljoen wrote:

          Did I mention that this was an argument to string.Split() which is defined to take (params char[])?

          That was only introduced in .NET 3.5 IIRC. I have written similar code ages back too.

          xacc.ide
          IronScheme - 1.0 RC 1 - out now!
          ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

          R L 2 Replies Last reply
          0
          • L leppie

            Derek Viljoen wrote:

            Did I mention that this was an argument to string.Split() which is defined to take (params char[])?

            That was only introduced in .NET 3.5 IIRC. I have written similar code ages back too.

            xacc.ide
            IronScheme - 1.0 RC 1 - out now!
            ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

            R Offline
            R Offline
            RugbyLeague
            wrote on last edited by
            #8

            Same here - and until today I still would have had I not seen your post and tried using a single char parameter. Thanks

            1 Reply Last reply
            0
            • L leppie

              Derek Viljoen wrote:

              Did I mention that this was an argument to string.Split() which is defined to take (params char[])?

              That was only introduced in .NET 3.5 IIRC. I have written similar code ages back too.

              xacc.ide
              IronScheme - 1.0 RC 1 - out now!
              ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #9

              No, see here: http://msdn.microsoft.com/en-us/library/b873y76a%28VS.80%29.aspx[^]

              L 1 Reply Last reply
              0
              • L Lost User

                No, see here: http://msdn.microsoft.com/en-us/library/b873y76a%28VS.80%29.aspx[^]

                L Offline
                L Offline
                leppie
                wrote on last edited by
                #10

                harold aptroot wrote:

                No, see here: http://msdn.microsoft.com/en-us/library/b873y76a(VS.80).aspx\[^\]

                Well, I can't say, the fuckin page is stuck on C++ :( PS: IIRC C++ does not support .NET params. Update: IE to the rescue. I see it was there (in 2.0), maybe I am thinking of something else...

                xacc.ide
                IronScheme - 1.0 RC 1 - out now!
                ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

                L 1 Reply Last reply
                0
                • T Tsuda Kageyu

                  This is what I have seen years ago.

                  a.ToString().ToString();

                  Yeah... he was just tired... couldn't prevent a prank by Intellisence.

                  J Offline
                  J Offline
                  Jeroen De Dauw
                  wrote on last edited by
                  #11

                  What happened to your post titled "BitVector32 vs BitArray ???" in this forums? Did you delete it?

                  Jeroen De Dauw
                  Blog ; Wiki

                  T 1 Reply Last reply
                  0
                  • J Jeroen De Dauw

                    What happened to your post titled "BitVector32 vs BitArray ???" in this forums? Did you delete it?

                    Jeroen De Dauw
                    Blog ; Wiki

                    T Offline
                    T Offline
                    Tsuda Kageyu
                    wrote on last edited by
                    #12

                    Sorry. I deleted it because it could be a mere slander.

                    L 1 Reply Last reply
                    0
                    • L leppie

                      harold aptroot wrote:

                      No, see here: http://msdn.microsoft.com/en-us/library/b873y76a(VS.80).aspx\[^\]

                      Well, I can't say, the fuckin page is stuck on C++ :( PS: IIRC C++ does not support .NET params. Update: IE to the rescue. I see it was there (in 2.0), maybe I am thinking of something else...

                      xacc.ide
                      IronScheme - 1.0 RC 1 - out now!
                      ((λ (x) `(,x ',x)) '(λ (x) `(,x ',x))) The Scheme Programming Language – Fourth Edition

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #13

                      I don't know what else you could be thinking of - you were talking about the params overload for .NET 2.0 right?

                      1 Reply Last reply
                      0
                      • T Tsuda Kageyu

                        Sorry. I deleted it because it could be a mere slander.

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #14

                        Who cares, we don't know the author anyway

                        1 Reply Last reply
                        0
                        • D Derek Viljoen

                          ";".ToCharArray() 'nuf said.

                          D Offline
                          D Offline
                          Dan Mos
                          wrote on last edited by
                          #15

                          problem: why "i don't rember exactly the hard coded string".ToString.ToUpper(); ? answer: I just hate writting using caps. Concluzion: I'm sure he/she had his reasons. :)

                          I bug

                          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