C# Language Func delegates

30% OFF - 9th Anniversary discount on Entity Framework Extensions until December 15 with code: ZZZANNIVERSARY9

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?