Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

IENUMERABLE with BOOL type in C#

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace ForgetCode
  6. {
  7. public class MainClass
  8. {
  9. public static void Main()
  10. {
  11. IEnumerable<bool> result = new List<bool> { true, false, true };
  12. foreach (bool value in result)
  13. {
  14. Console.WriteLine(value);
  15. }
  16. }
  17. }
  18. }


Output:
True
False
True