Lambda Expression Error - Help me RRS feed

  • General discussion

  • Code Snippet

    delegate void delgEx(string strValue);


    delgEx delFourthObj = lxTe1 => { lxTe1 + " -- What do you say ??"; }; //Get error as .. only assignment, call, increment, decrement, and new expression can be used as a statement


    Console.WriteLine(delFourthObj("Hey ")); // The best overload method match for System.Console.WriteLine(bool) has invalid arguments

    Can some one identify the error in the above code snippet..
    Correct me if am mistaken or miss interpreting the lambda expressions
    Anyhow, thanks for reading.
    Thursday, July 19, 2007 10:03 PM

All replies

  • I found where i went wrong ...


    If you would like to know the answer, either ping me here or on MSN Messanger with dskcheck@msn.com

    Friday, July 20, 2007 8:09 AM