Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialRohit Gopalan
81,945 PointsIssues with Lambda Functions in Linq
I am again getting issues with getting the Lambda functions to work in Linq. Communication issues are once again being reported. I was wondering whether it can be resolved.
using System;
namespace Treehouse.CodeChallenges
{
public class Program
{
public Func<int, int> square = (number) =>
{
return number * number;
};
public Action<int, Func<int, int>> displayResult = delegate (int result, Func<int, int> function)
{
Console.WriteLine(function(result));
};
static void Main(string[] args)
{
}
}
}
1 Answer
Carling Kirk
Treehouse Guest TeacherRohit, there was an issue in this code challenge and it has been fixed. The delegates should be capitalized in the code. Thank you for reporting this!