C# Language Func delegates

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • public delegate TResult Func<in T, out TResult>(T arg)
  • public delegate TResult Func<in T1, in T2, out TResult>(T1 arg1, T2 arg2)
  • public delegate TResult Func<in T1, in T2, in T3, out TResult>(T1 arg1, T2 arg2, T3 arg3)
  • public delegate TResult Func<in T1, in T2, in T3, in T4, out TResult>(T1 arg1, T2 arg2, T3 arg3, T4 arg4)

Parameters

ParameterDetails
arg or arg1the (first) parameter of the method
arg2the second parameter of the method
arg3the third parameter of the method
arg4the fourth parameter of the method
T or T1the type of the (first) parameter of the method
T2the type of the second parameter of the method
T3the type of the third parameter of the method
T4the type of the fourth parameter of the method
TResultthe return type of the method


Got any C# Language Question?