コード例 #1
0
 public void SendingResults(SendDoc sendReport)
 {
     if(sendReport() == 1)
     {
         Console.WriteLine("Sending Report");
     }
     else
     {
         Console.WriteLine("Sending Failed");
     }
 }
コード例 #2
0
 public void ReportSendingResult(SendDoc sendingDelegate)
 {
     if (sendingDelegate() == 0)
     { 
         Console.WriteLine("Success");
     }
     else
     { 
         Console.WriteLine("Unable to send!");
     }
 }
コード例 #3
0
 public void ReportSendingResult(SendDoc sendingDelegate)
 {
     if (sendingDelegate() == 0)
     {
         Console.WriteLine("Success");
     }
     else
     {
         Console.WriteLine("Unable to Send");
     }
 }