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. Infoof explained in MS blog

Infoof explained in MS blog

Scheduled Pinned Locked Moved The Lounge
csharpwpfcomcollaborationhelp
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.
  • N Offline
    N Offline
    Nicholas Butler
    wrote on last edited by
    #1

    I hate using magic strings to identify tokens - methods, properties, events, ... It's a problem when using Reflection and especially XAML. I even wrote a short article about a workaround: Strong: Reflection without magic strings[^]. Eric Lippert is on the MS C# compiler team and he has written a blog entry about why this is not in the language: http://blogs.msdn.com/ericlippert/archive/2009/05/21/in-foof-we-trust-a-dialogue.aspx[^] We have typeof, but what I really want is an infoof. Apparently other people think the same way - read the comments! What do you think? Nick

    ---------------------------------- Be excellent to each other :)

    P D J 3 Replies Last reply
    0
    • N Nicholas Butler

      I hate using magic strings to identify tokens - methods, properties, events, ... It's a problem when using Reflection and especially XAML. I even wrote a short article about a workaround: Strong: Reflection without magic strings[^]. Eric Lippert is on the MS C# compiler team and he has written a blog entry about why this is not in the language: http://blogs.msdn.com/ericlippert/archive/2009/05/21/in-foof-we-trust-a-dialogue.aspx[^] We have typeof, but what I really want is an infoof. Apparently other people think the same way - read the comments! What do you think? Nick

      ---------------------------------- Be excellent to each other :)

      P Offline
      P Offline
      Paul Selormey
      wrote on last edited by
      #2

      Thanks for the information, very useful.

      Nick Butler wrote:

      We have typeof, but what I really want is an infoof. Apparently other people think the same way - read the comments! What do you think?

      It will have limited application. XAML is not C#, and from what I have seen in the demo, the new XAML 4.0 is quite complete. BTW, I will suggest the VB version to be InfoAboutMe ;P Best regards, Paul.

      Jesus Christ is LOVE! Please tell somebody.

      1 Reply Last reply
      0
      • N Nicholas Butler

        I hate using magic strings to identify tokens - methods, properties, events, ... It's a problem when using Reflection and especially XAML. I even wrote a short article about a workaround: Strong: Reflection without magic strings[^]. Eric Lippert is on the MS C# compiler team and he has written a blog entry about why this is not in the language: http://blogs.msdn.com/ericlippert/archive/2009/05/21/in-foof-we-trust-a-dialogue.aspx[^] We have typeof, but what I really want is an infoof. Apparently other people think the same way - read the comments! What do you think? Nick

        ---------------------------------- Be excellent to each other :)

        D Offline
        D Offline
        Dr Walt Fair PE
        wrote on last edited by
        #3

        Nick Butler wrote:

        what I really want is an infoof

        What the heck. an infoof here and outfoof there. Any language with a foof or two in it must be OK in my book.

        CQ de W5ALT

        Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

        P 1 Reply Last reply
        0
        • D Dr Walt Fair PE

          Nick Butler wrote:

          what I really want is an infoof

          What the heck. an infoof here and outfoof there. Any language with a foof or two in it must be OK in my book.

          CQ de W5ALT

          Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

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

          Replace Dispose with DisappearedWithAFoof?

          "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
          • N Nicholas Butler

            I hate using magic strings to identify tokens - methods, properties, events, ... It's a problem when using Reflection and especially XAML. I even wrote a short article about a workaround: Strong: Reflection without magic strings[^]. Eric Lippert is on the MS C# compiler team and he has written a blog entry about why this is not in the language: http://blogs.msdn.com/ericlippert/archive/2009/05/21/in-foof-we-trust-a-dialogue.aspx[^] We have typeof, but what I really want is an infoof. Apparently other people think the same way - read the comments! What do you think? Nick

            ---------------------------------- Be excellent to each other :)

            J Offline
            J Offline
            Judah Gabriel Himango
            wrote on last edited by
            #5

            I would like infoof. I've read Lippert's objections to it, and so I suggest we go with a simpler nameof keyword.

            Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

            E 1 Reply Last reply
            0
            • J Judah Gabriel Himango

              I would like infoof. I've read Lippert's objections to it, and so I suggest we go with a simpler nameof keyword.

              Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango

              E Offline
              E Offline
              emiaj
              wrote on last edited by
              #6

              Nice find Judah. I always try to avoid strings by reasons that can be found in the comments of that article. So far, as other people suggests, I'm using Expression Trees to mimic what infoof/nameof/whatever would be in C#. I'd even wrote an article about it: here[^]

              Jaime Febres The worst blog in the world

              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