Create a Sieve class with a public bool IsGood(int number) method. This class needs a constructor with a delegate parameter that can be invoked later within the IsGood method. Hint: You can make your own delegate type or use Func<int, bool>Create a Sieve class with a public bool IsGood(int number) method.
This class needs a constructor with a delegate parameter that can be invoked later within the IsGood method.
This class needs a constructor with a delegate parameter
(that can be) invoked (later) within the IsGood method.
You can make your own delegate type or use Func<int, bool>they are telling you the signature to use
React with ❌ to remove this embed.
•8/28/22, 6:54 PM

Func<int> funchint say that ?Func<int, bool>React with ❌ to remove this embed.
•8/28/22, 6:59 PM
class Sieve
{
public bool IsGood(int number)
{
return true;
}
public Sieve(int number, SieveDelegate operation)
{
}
}Console.WriteLine("Which filter: Even, positive, or x10?");
string filterChoice = Console.ReadLine();
//if (filterChoice == "even")
bool Even(int number) => number % 2 == 0;
bool Positive(int number) => number > -1;
bool Mult10(int number) => number % 10 == 0;
class Sieve
{
public bool IsGood(int number)
{
return true;
}
public Sieve(int number, SieveDelegate operation)
{
}
}
public delegate int SieveDelegate(int number);Func<int> funchintFunc<int, bool>class Sieve
{
public bool IsGood(int number)
{
return true;
}
public Sieve(int number, SieveDelegate operation)
{
}
}class Sieve
{
public bool IsGood(int number)
{
return true;
}
public Sieve(int number, SieveDelegate operation)
{
}
}