Linq query on CheckedNodes returns "Expression cannot contain lambda expressions"

2 posts, 0 answers
  1. David
    David avatar
    48 posts
    Member since:
    Nov 2012

    Posted 09 Jan 2013 Link to this post

    Hi, I'm trying to pull just the node Values using a Linq query

    IList<RadTreeNode> nodeCollection = RadTreeViewSearchItems.CheckedNodes;

    var myvalues = nodeCollection.Select(n => n.Value);
    or
    var myvalues = nodeCollection.Select(n => n.Value).ToList();

    returns...

    Expression cannot contain lambda expressions

  2. David
    David avatar
    48 posts
    Member since:
    Nov 2012

    Posted 09 Jan 2013 Link to this post

    Nevermind. It was because I was trying to execute this in VS debugger.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top