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. General Programming
  3. LINQ
  4. An excellent resource for recursively using C# Linq to Objects !

An excellent resource for recursively using C# Linq to Objects !

Scheduled Pinned Locked Moved LINQ
csharpwinformslinqhelpquestion
3 Posts 3 Posters 5 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.
  • B Offline
    B Offline
    BillWoodruff
    wrote on last edited by
    #1

    Hi CP Friends, This is not a question; I just want to share with you a pointer to something I've been looking for a long time that I just found today[^]. It's a blog entry by David Jade with source code for an extension method and a sketch of a sample usage call. I've already been able to adopt David Jade's sample code to use for "harvesting" (as "flat" generic lists) both collections of WinForms controls, and TreeView Nodes : using his Linq extension method. Now if I could only understand what he's doing in the extension method ... I mean really understand it ... well, I'm trying, but I think I should graduate from kindergarten before posting any questions here about Linq : it slips through my mind like eels. best, Bill

    "Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

    N D 2 Replies Last reply
    0
    • B BillWoodruff

      Hi CP Friends, This is not a question; I just want to share with you a pointer to something I've been looking for a long time that I just found today[^]. It's a blog entry by David Jade with source code for an extension method and a sketch of a sample usage call. I've already been able to adopt David Jade's sample code to use for "harvesting" (as "flat" generic lists) both collections of WinForms controls, and TreeView Nodes : using his Linq extension method. Now if I could only understand what he's doing in the extension method ... I mean really understand it ... well, I'm trying, but I think I should graduate from kindergarten before posting any questions here about Linq : it slips through my mind like eels. best, Bill

      "Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      BillWoodruff wrote:

      Now if I could only understand what he's doing in the extension method

      Are you talking about that yield stuff?

      Best wishes, Navaneeth

      1 Reply Last reply
      0
      • B BillWoodruff

        Hi CP Friends, This is not a question; I just want to share with you a pointer to something I've been looking for a long time that I just found today[^]. It's a blog entry by David Jade with source code for an extension method and a sketch of a sample usage call. I've already been able to adopt David Jade's sample code to use for "harvesting" (as "flat" generic lists) both collections of WinForms controls, and TreeView Nodes : using his Linq extension method. Now if I could only understand what he's doing in the extension method ... I mean really understand it ... well, I'm trying, but I think I should graduate from kindergarten before posting any questions here about Linq : it slips through my mind like eels. best, Bill

        "Many : not conversant with mathematical studies, imagine that because it [the Analytical Engine] is to give results in numerical notation, its processes must consequently be arithmetical, numerical, rather than algebraical and analytical. This is an error. The engine can arrange and combine numerical quantities as if they were letters or any other general symbols; and it fact it might bring out its results in algebraical notation, were provisions made accordingly." Ada, Countess Lovelace, 1844

        D Offline
        D Offline
        ddecoy
        wrote on last edited by
        #3

        Very nice! Indeed it works with the

        yield

        keyword to have the function return objects as long as there are 'descendants'.

        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