public void ShowMe() { IsNineDelegate myDelegate = IsNiner; Boolean result = PerformCalculation(myDelegate, 3, 6); Console.WriteLine(result); }
public Boolean PerformCalculation(IsNineDelegate isNine, int value1, int value2) { int result = value1 + value2; return(isNine(result)); }