Skip to content

Commit f02136b

Browse files
committed
Update InfoBuilder.cs
1 parent 5b86380 commit f02136b

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/Verify/Serialization/InfoBuilder.cs

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,14 @@ void Add(string name, object value)
2525
}
2626
}
2727

28-
class Item
28+
class Item(string key, object value)
2929
{
30-
public string Key { get; }
30+
public string Key { get; } = key;
3131

32-
public Item(string key, object value)
32+
public List<object> Values { get; } = new()
3333
{
34-
Key = key;
35-
Values = new()
36-
{
37-
value
38-
};
39-
}
40-
41-
public List<object> Values { get; }
34+
value
35+
};
4236
}
4337

4438
public class Converter :

0 commit comments

Comments
 (0)