I'm pretty new to Delegates, Expression Lambda and local Methods. But can anyone explain the difference between these two code blocks?
public static void Main()
{
bool IsDivisible(int x, int y)
{
return x % y == 0;
}
Func<int, int, bool> IsDivisibleFunc = (x, y) =>
{
return x % y == 0;
};
}
Edit: Added a Main Method around it