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. The Lounge
  3. The best ever MSDN help page

The best ever MSDN help page

Scheduled Pinned Locked Moved The Lounge
phpvisual-studiocomhelp
31 Posts 17 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.
  • L leppie

    Delegate..::.CreateDelegate Method (Type, Object, MethodInfo, Boolean) [^] Wow :)

    xacc.ide - now with TabsToSpaces support
    IronScheme - 1.0 alpha 4 out now (27 May 2008)

    M Offline
    M Offline
    Maximilien
    wrote on last edited by
    #7

    I half-expected the "good" documentation to be added in the "community content section". BTW, you should write something there saying that documentation DID actually help you.

    This signature was proudly tested on animals.

    1 Reply Last reply
    0
    • L leppie

      Delegate..::.CreateDelegate Method (Type, Object, MethodInfo, Boolean) [^] Wow :)

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4 out now (27 May 2008)

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #8

      can it create SuperDelegates ?

      image processing toolkits | batch image processing

      M L 2 Replies Last reply
      0
      • L leppie

        Delegate..::.CreateDelegate Method (Type, Object, MethodInfo, Boolean) [^] Wow :)

        xacc.ide - now with TabsToSpaces support
        IronScheme - 1.0 alpha 4 out now (27 May 2008)

        B Offline
        B Offline
        Brady Kelly
        wrote on last edited by
        #9

        Hmm, tickles the brain. I came close to using that method for some arcane 'very cool to have' feature I wanted to implement about a year ago. Right now it's just TMI.

        Semicolons: The number one seller of ostomy bags world wide. - dan neely

        1 Reply Last reply
        0
        • C Chris Losinger

          can it create SuperDelegates ?

          image processing toolkits | batch image processing

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #10

          Chris Losinger wrote:

          can it create SuperDelegates ?

          They're called "events". ;P Marc

          Thyme In The Country Interacx My Blog

          1 Reply Last reply
          0
          • C Chris Losinger

            can it create SuperDelegates ?

            image processing toolkits | batch image processing

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

            Basically the cool thing about that page is that you can 'bind' the first parameter of the delegate, so in effect you can create 'composed' expressions.

            xacc.ide - now with TabsToSpaces support
            IronScheme - 1.0 alpha 4 out now (27 May 2008)

            U 1 Reply Last reply
            0
            • L leppie

              Basically the cool thing about that page is that you can 'bind' the first parameter of the delegate, so in effect you can create 'composed' expressions.

              xacc.ide - now with TabsToSpaces support
              IronScheme - 1.0 alpha 4 out now (27 May 2008)

              U Offline
              U Offline
              User of Users Group
              wrote on last edited by
              #12

              Don't see where that greatly helps you, perhaps I'm missing a particular scenario as you can either pass another expression which converts to object (blewh) or you could just go and do composition with Func<T,..> No? If you want expression templates well, C# doesn't have them; they designed the tedium of C# compiler away with that signature :)

              L 1 Reply Last reply
              0
              • C Christopher Duncan

                leppie wrote:

                I meant it as a compliment.

                That's the part I didn't get. :) I've become so accustomed to the incredibly poor quality of documentation coming from MS these days that I just assumed it was a well deserved snarky commentary. Quality documentation from MSDN - who knew?

                Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                C Offline
                C Offline
                Chris Maunder
                wrote on last edited by
                #13

                That's exactly my reaction. I was thinking "hang on - this actually looks really good. Why is he dissing it". Then I turned off auto-sarcasm and it became clear.

                cheers, Chris Maunder

                CodeProject.com : C++ MVP

                C L S 3 Replies Last reply
                0
                • C Chris Maunder

                  That's exactly my reaction. I was thinking "hang on - this actually looks really good. Why is he dissing it". Then I turned off auto-sarcasm and it became clear.

                  cheers, Chris Maunder

                  CodeProject.com : C++ MVP

                  C Offline
                  C Offline
                  Christopher Duncan
                  wrote on last edited by
                  #14

                  Chris Maunder wrote:

                  Then I turned off auto-sarcasm

                  Yeah, it took me a minute to remember where the switch was.

                  Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                  G V 2 Replies Last reply
                  0
                  • L leppie

                    Delegate..::.CreateDelegate Method (Type, Object, MethodInfo, Boolean) [^] Wow :)

                    xacc.ide - now with TabsToSpaces support
                    IronScheme - 1.0 alpha 4 out now (27 May 2008)

                    M Offline
                    M Offline
                    Member 96
                    wrote on last edited by
                    #15

                    Yeah that is pretty good. For once even their example code isn't unnecessarily convoluted and complex for no apparent reason (something they've always been guilty of). I like the redesign too (I've been avoiding MSDN for probably a year now at least).


                    "The great pleasure in life is doing what people say you cannot do." - Walter Bagehot

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      That's exactly my reaction. I was thinking "hang on - this actually looks really good. Why is he dissing it". Then I turned off auto-sarcasm and it became clear.

                      cheers, Chris Maunder

                      CodeProject.com : C++ MVP

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

                      Hey, I dont always rant! :) PS: I even took the time to explain to the author why I called her article 'Useless'.

                      xacc.ide - now with TabsToSpaces support
                      IronScheme - 1.0 alpha 4 out now (27 May 2008)

                      1 Reply Last reply
                      0
                      • U User of Users Group

                        Don't see where that greatly helps you, perhaps I'm missing a particular scenario as you can either pass another expression which converts to object (blewh) or you could just go and do composition with Func<T,..> No? If you want expression templates well, C# doesn't have them; they designed the tedium of C# compiler away with that signature :)

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

                        Basically it lets you make curried functions (functions with 1 free variable). So imagine you have foo(a,b). Now you can say bar(b) = foo(1,b). And call bar(x), and foo(1,x) gets executed.

                        xacc.ide - now with TabsToSpaces support
                        IronScheme - 1.0 alpha 4 out now (27 May 2008)

                        U G 2 Replies Last reply
                        0
                        • C Christopher Duncan

                          Chris Maunder wrote:

                          Then I turned off auto-sarcasm

                          Yeah, it took me a minute to remember where the switch was.

                          Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                          G Offline
                          G Offline
                          Gary Wheeler
                          wrote on last edited by
                          #18

                          I'm middle-aged. My switch atrophied and fell off years ago.

                          Software Zen: delete this;

                          M 1 Reply Last reply
                          0
                          • C Christopher Duncan

                            Chris Maunder wrote:

                            Then I turned off auto-sarcasm

                            Yeah, it took me a minute to remember where the switch was.

                            Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                            V Offline
                            V Offline
                            Vincent Curry
                            wrote on last edited by
                            #19

                            Maybe we should have a new rule for posting in the Lounge, as in all posts should be sarcastic?

                            Vincent www.pub-olympics.com

                            D 1 Reply Last reply
                            0
                            • V Vincent Curry

                              Maybe we should have a new rule for posting in the Lounge, as in all posts should be sarcastic?

                              Vincent www.pub-olympics.com

                              D Offline
                              D Offline
                              Dan Neely
                              wrote on last edited by
                              #20

                              Vincent Curry wrote:

                              Maybe we should have a new rule for posting in the Lounge, as in all posts should be sarcastic?

                              That's an utterly brillant idea.

                              You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon

                              S 1 Reply Last reply
                              0
                              • C Chris Maunder

                                That's exactly my reaction. I was thinking "hang on - this actually looks really good. Why is he dissing it". Then I turned off auto-sarcasm and it became clear.

                                cheers, Chris Maunder

                                CodeProject.com : C++ MVP

                                S Offline
                                S Offline
                                stevev6
                                wrote on last edited by
                                #21

                                Sounds like something that Ms. Clinton would use.

                                1 Reply Last reply
                                0
                                • L leppie

                                  Basically it lets you make curried functions (functions with 1 free variable). So imagine you have foo(a,b). Now you can say bar(b) = foo(1,b). And call bar(x), and foo(1,x) gets executed.

                                  xacc.ide - now with TabsToSpaces support
                                  IronScheme - 1.0 alpha 4 out now (27 May 2008)

                                  U Offline
                                  U Offline
                                  User of Users Group
                                  wrote on last edited by
                                  #22

                                  Not sure what you're trying to do with it again but I think people are doing that without explicit CreateDelegate (should be "new delegate" construct generated by compiler) or whatever it was along the shorthand lines of: public static Func< T, Func<U, Z>> Curry<T, U, Z>(Func<T, U, Z> fn) { return new Func<Func<T, U, Z>, Func<T, Func<U, Z>>>( f => x => y => f(x, y))(fn); } if that makes any sense. Probably not what you want but you can split it up and use extension methods. It doesn't look good to me, because it is pure C# unreadable :)

                                  L 1 Reply Last reply
                                  0
                                  • U User of Users Group

                                    Not sure what you're trying to do with it again but I think people are doing that without explicit CreateDelegate (should be "new delegate" construct generated by compiler) or whatever it was along the shorthand lines of: public static Func< T, Func<U, Z>> Curry<T, U, Z>(Func<T, U, Z> fn) { return new Func<Func<T, U, Z>, Func<T, Func<U, Z>>>( f => x => y => f(x, y))(fn); } if that makes any sense. Probably not what you want but you can split it up and use extension methods. It doesn't look good to me, because it is pure C# unreadable :)

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

                                    That is exactly what I am saying :) But this way allows you to do it to languages that does not support that compiler construct, or programatically.

                                    xacc.ide - now with TabsToSpaces support
                                    IronScheme - 1.0 alpha 4a out now (29 May 2008)

                                    1 Reply Last reply
                                    0
                                    • D Dan Neely

                                      Vincent Curry wrote:

                                      Maybe we should have a new rule for posting in the Lounge, as in all posts should be sarcastic?

                                      That's an utterly brillant idea.

                                      You know, every time I tried to win a bar-bet about being able to count to 1000 using my fingers I always got punched out when I reached 4.... -- El Corazon

                                      S Offline
                                      S Offline
                                      SimonRigby
                                      wrote on last edited by
                                      #24

                                      dan neely wrote:

                                      That's an utterly brillant idea.

                                      OK was that sarcasm? :)

                                      The only thing unpredictable about me is just how predictable I'm going to be.

                                      A 1 Reply Last reply
                                      0
                                      • C Christopher Duncan

                                        leppie wrote:

                                        I meant it as a compliment.

                                        That's the part I didn't get. :) I've become so accustomed to the incredibly poor quality of documentation coming from MS these days that I just assumed it was a well deserved snarky commentary. Quality documentation from MSDN - who knew?

                                        Christopher Duncan Author of The Career Programmer and Unite the Tribes www.PracticalUSA.com

                                        J Offline
                                        J Offline
                                        JamminJimE
                                        wrote on last edited by
                                        #25

                                        Wow! It's almost like a bigfoot sighting or UFO encounter (except this time we DIDN'T get probed)! You know, they are going to read these posts and IMMEDIATELY take down that page. Everyone, QUICK!!! Save that HTML to your local machine. That way we have proof!! hehehehe :laugh:

                                        JamminJimE Microsoft Certified Application Developer
                                        Why are we still calling it Common Sense when it's just not that common?

                                        1 Reply Last reply
                                        0
                                        • G Gary Wheeler

                                          I'm middle-aged. My switch atrophied and fell off years ago.

                                          Software Zen: delete this;

                                          M Offline
                                          M Offline
                                          macu
                                          wrote on last edited by
                                          #26

                                          You can get that seen to these days you know.

                                          G 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