From f02136bd30c1888be77eaba32e660785cc36837f Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sun, 10 Sep 2023 21:11:59 +1000 Subject: [PATCH] Update InfoBuilder.cs --- src/Verify/Serialization/InfoBuilder.cs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/Verify/Serialization/InfoBuilder.cs b/src/Verify/Serialization/InfoBuilder.cs index d6ba7ae1cd..5e2435883b 100644 --- a/src/Verify/Serialization/InfoBuilder.cs +++ b/src/Verify/Serialization/InfoBuilder.cs @@ -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 Values { get; } = new() { - Key = key; - Values = new() - { - value - }; - } - - public List Values { get; } + value + }; } public class Converter :