1
Answer

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

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)