Jose Ramirez

Jose Ramirez

  • NA
  • 44
  • 2.8k

Error CS1503 : Conversion <int> to System.Predicate<int>

Feb 25 2019 6:37 AM
Hi,
 
When I try to convet from <int> to System.Predicate<int> I has this error :
 
Error CS1503 Argumento 1: no se puede convertir de 'int' a 'System.Predicate<int>' WindowsFormsAppC C:\Users\josramir\source\repos\WindowsFormsAppC\Form1.cs 27 Activo
 
Intructions :
 
int intToFind = arr[K];
List<int> listOut = arr.FindAll( (System.Predicate<int>) intToFind);
 
How can I do it?

Answers (1)