Make a ton of VS-recommended changes. Sure, why not.

This commit is contained in:
2020-12-22 13:04:55 -06:00
parent f420af35cc
commit 0a3fe365d0
17 changed files with 56 additions and 53 deletions

8
Q06.cs
View File

@ -6,12 +6,12 @@ namespace _2020
{
class Q06
{
class group
class Group
{
public int numInGroup;
public Dictionary<char, int> answers;
}
static List<group> list = new List<group>();
static readonly List<Group> list = new List<Group>();
public static void Go()
{
@ -25,12 +25,12 @@ namespace _2020
using var fs = new FileStream("06input.txt", FileMode.Open);
using var sr = new StreamReader(fs);
string line;
group entry = null;
Group entry = null;
while ((line = sr.ReadLine()) != null)
{
if (line.Length == 0 || entry == null)
{
entry = new group()
entry = new Group()
{
numInGroup = 0,
answers = new Dictionary<char, int>(),