Sachin Singh

Sachin Singh

  • 7
  • 55.8k
  • 82.7k

why func() is too favourite to MS Linq devs.

Dec 3 2020 8:33 AM
why Linq developers has used func<> in places where Predicate was suffice.
for example the where extension method actually takes a func with bool as output
means it takes func<Tsource,bool> but they have given it a name of predicate.
   when they could directly take predicate like they have used in Find extension method , why not in where method?
 
  1. Find (Predicate<T> match); 

Answers (2)