Skip to content

Instantly share code, notes, and snippets.

@GregTrevellick
Created October 26, 2018 14:48
Show Gist options
  • Select an option

  • Save GregTrevellick/8b28b81f48ccb7f2376f0268f3292155 to your computer and use it in GitHub Desktop.

Select an option

Save GregTrevellick/8b28b81f48ccb7f2376f0268f3292155 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
public class Program
{
public static void Main()
{
Console.WriteLine("Hello World");
var mixed = new List<bool> {true, false, true, false};
var trues = new List<bool> {true, true, true};
var m1 = true;
var t1 = true;
foreach (var m in mixed)
{
m1 &= m;
}
foreach (var t in trues)
{
t1 &= t;
}
Console.WriteLine(m1);
Console.WriteLine(t1);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment