Skip to content

Commit 9649cf5

Browse files
committed
use target type new
1 parent 39334d6 commit 9649cf5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ValidCode/Collections/DictionaryOfIntAndStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace ValidCode.Collections
66

77
public class DictionaryOfIntAndStream
88
{
9-
private readonly Dictionary<int, Stream> streams = new Dictionary<int, Stream>();
9+
private readonly Dictionary<int, Stream> streams = new();
1010

1111
public DictionaryOfIntAndStream()
1212
{

ValidCode/Issues/Issue254.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace ValidCode
66

77
public class Issue254
88
{
9-
private static readonly XmlSerializer Serializer = new XmlSerializer(typeof(Issue254));
9+
private static readonly XmlSerializer Serializer = new(typeof(Issue254));
1010

1111
public static void Save(string fileName, Issue254 item)
1212
{

0 commit comments

Comments
 (0)