Skip to content

Commit

Permalink
Update InfoBuilder.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Sep 10, 2023
1 parent 5b86380 commit f02136b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/Verify/Serialization/InfoBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,14 @@ void Add(string name, object value)
}
}

class Item
class Item(string key, object value)
{
public string Key { get; }
public string Key { get; } = key;

public Item(string key, object value)
public List<object> Values { get; } = new()
{
Key = key;
Values = new()
{
value
};
}

public List<object> Values { get; }
value
};
}

public class Converter :
Expand Down

0 comments on commit f02136b

Please sign in to comment.