diff --git a/base/csharp/test/inputs/json/misc/00c36.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/00c36.json/default/QuickType.cs
index 49ed525..47abaf1 100644
--- a/base/csharp/test/inputs/json/misc/00c36.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/00c36.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/00ec5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/00ec5.json/default/QuickType.cs
index 1114efa..986aa63 100644
--- a/base/csharp/test/inputs/json/misc/00ec5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/00ec5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/010b1.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/010b1.json/default/QuickType.cs
index 247f081..63d0adf 100644
--- a/base/csharp/test/inputs/json/misc/010b1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/010b1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/016af.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/016af.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/016af.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/016af.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/033b1.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/033b1.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/033b1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/033b1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/050b0.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/050b0.json/default/QuickType.cs
index 0ec5bfe..48ec445 100644
--- a/base/csharp/test/inputs/json/misc/050b0.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/050b0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/06bee.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/06bee.json/default/QuickType.cs
index 8a8b263..6361f36 100644
--- a/base/csharp/test/inputs/json/misc/06bee.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/06bee.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/07540.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/07540.json/default/QuickType.cs
index 56b9d6e..b06d434 100644
--- a/base/csharp/test/inputs/json/misc/07540.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/07540.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/0779f.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/0779f.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/0779f.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/0779f.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/07c75.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/07c75.json/default/QuickType.cs
index 0193f54..212da00 100644
--- a/base/csharp/test/inputs/json/misc/07c75.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/07c75.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/09f54.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/09f54.json/default/QuickType.cs
index faec034..7ff69c2 100644
--- a/base/csharp/test/inputs/json/misc/09f54.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/09f54.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/0a358.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/0a358.json/default/QuickType.cs
index 08ca77f..9ff6d2d 100644
--- a/base/csharp/test/inputs/json/misc/0a358.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/0a358.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/0a91a.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/0a91a.json/default/QuickType.cs
index e2459b8..98de4cc 100644
--- a/base/csharp/test/inputs/json/misc/0a91a.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/0a91a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/0b91a.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/0b91a.json/default/QuickType.cs
index e28826d..1c85e73 100644
--- a/base/csharp/test/inputs/json/misc/0b91a.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/0b91a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/0cffa.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/0cffa.json/default/QuickType.cs
index 3b7d394..1f5ca84 100644
--- a/base/csharp/test/inputs/json/misc/0cffa.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/0cffa.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/0e0c2.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
index 66d35f2..718ef80 100644
--- a/base/csharp/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/0fecf.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/0fecf.json/default/QuickType.cs
index 3d65fd4..1b5274a 100644
--- a/base/csharp/test/inputs/json/misc/0fecf.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/0fecf.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/10be4.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/10be4.json/default/QuickType.cs
index fc571b4..c54bd05 100644
--- a/base/csharp/test/inputs/json/misc/10be4.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/10be4.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/112b5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/112b5.json/default/QuickType.cs
index caa3d39..3954493 100644
--- a/base/csharp/test/inputs/json/misc/112b5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/112b5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/127a1.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/127a1.json/default/QuickType.cs
index 1e3a0ca..a15cf16 100644
--- a/base/csharp/test/inputs/json/misc/127a1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/127a1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/13d8d.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/13d8d.json/default/QuickType.cs
index 4a25c40..55729a1 100644
--- a/base/csharp/test/inputs/json/misc/13d8d.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/13d8d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/14d38.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/14d38.json/default/QuickType.cs
index f85fe9a..92aab6c 100644
--- a/base/csharp/test/inputs/json/misc/14d38.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/14d38.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/167d6.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/167d6.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/167d6.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/167d6.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/16bc5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/16bc5.json/default/QuickType.cs
index 0c9b2ae..53e0281 100644
--- a/base/csharp/test/inputs/json/misc/16bc5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/16bc5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/176f1.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/176f1.json/default/QuickType.cs
index 195cf8c..3eb33ad 100644
--- a/base/csharp/test/inputs/json/misc/176f1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/176f1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/1a7f5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
index 247f081..63d0adf 100644
--- a/base/csharp/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/1b28c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/1b28c.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/1b28c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/1b28c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/1b409.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/1b409.json/default/QuickType.cs
index 888443a..a69e5b2 100644
--- a/base/csharp/test/inputs/json/misc/1b409.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/1b409.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/2465e.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/2465e.json/default/QuickType.cs
index 1b6fc25..7bc38f8 100644
--- a/base/csharp/test/inputs/json/misc/2465e.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/2465e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/24f52.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/24f52.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/24f52.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/24f52.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/262f0.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/262f0.json/default/QuickType.cs
index 9f3deaa..2d5630c 100644
--- a/base/csharp/test/inputs/json/misc/262f0.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/262f0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/26b49.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/26b49.json/default/QuickType.cs
index d5e0c3b..95373c5 100644
--- a/base/csharp/test/inputs/json/misc/26b49.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/26b49.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/26c9c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/26c9c.json/default/QuickType.cs
index 57acf55..b6f6ca4 100644
--- a/base/csharp/test/inputs/json/misc/26c9c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/26c9c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/27332.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/27332.json/default/QuickType.cs
index ae233ca..c8249c1 100644
--- a/base/csharp/test/inputs/json/misc/27332.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/27332.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/29f47.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/29f47.json/default/QuickType.cs
index cf81f17..1f80d7a 100644
--- a/base/csharp/test/inputs/json/misc/29f47.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/29f47.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/2d4e2.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
index 0d39339..15d4328 100644
--- a/base/csharp/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/2df80.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/2df80.json/default/QuickType.cs
index 157118b..04b2790 100644
--- a/base/csharp/test/inputs/json/misc/2df80.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/2df80.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/31189.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/31189.json/default/QuickType.cs
index ad87dbb..22b4747 100644
--- a/base/csharp/test/inputs/json/misc/31189.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/31189.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/32431.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/32431.json/default/QuickType.cs
index 5d38339..a3e3863 100644
--- a/base/csharp/test/inputs/json/misc/32431.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/32431.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/32d5c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/32d5c.json/default/QuickType.cs
index f9fc2e2..96863b9 100644
--- a/base/csharp/test/inputs/json/misc/32d5c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/32d5c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/337ed.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/337ed.json/default/QuickType.cs
index 3c4a070..cfcbf66 100644
--- a/base/csharp/test/inputs/json/misc/337ed.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/337ed.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/33d2e.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/33d2e.json/default/QuickType.cs
index 0a20fe8..b1c6989 100644
--- a/base/csharp/test/inputs/json/misc/33d2e.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/33d2e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/34702.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/34702.json/default/QuickType.cs
index 6b448a5..b481921 100644
--- a/base/csharp/test/inputs/json/misc/34702.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/34702.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/3536b.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/3536b.json/default/QuickType.cs
index 9360057..26f7858 100644
--- a/base/csharp/test/inputs/json/misc/3536b.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/3536b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/3659d.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/3659d.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/3659d.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/3659d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/36d5d.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/36d5d.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/36d5d.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/36d5d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/3a6b3.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/3e9a3.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
index 195cf8c..3eb33ad 100644
--- a/base/csharp/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/3f1ce.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
index 7d8cd74..62cc038 100644
--- a/base/csharp/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/421d4.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/421d4.json/default/QuickType.cs
index e92dbeb..1c6394c 100644
--- a/base/csharp/test/inputs/json/misc/421d4.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/421d4.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/437e7.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/437e7.json/default/QuickType.cs
index c4474d4..66ab27d 100644
--- a/base/csharp/test/inputs/json/misc/437e7.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/437e7.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/43970.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/43970.json/default/QuickType.cs
index 350c29e..6a62052 100644
--- a/base/csharp/test/inputs/json/misc/43970.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/43970.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/43eaf.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/43eaf.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/43eaf.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/43eaf.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/458db.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/458db.json/default/QuickType.cs
index bb2d012..e54e172 100644
--- a/base/csharp/test/inputs/json/misc/458db.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/458db.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/4961a.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/4961a.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/4961a.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/4961a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/4a0d7.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/4a455.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/4a455.json/default/QuickType.cs
index 26230d8..cb79736 100644
--- a/base/csharp/test/inputs/json/misc/4a455.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/4a455.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/4c547.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/4c547.json/default/QuickType.cs
index 0c9b2ae..53e0281 100644
--- a/base/csharp/test/inputs/json/misc/4c547.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/4c547.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/4d6fb.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
index 332959b..5cc06b0 100644
--- a/base/csharp/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/4e336.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/4e336.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/4e336.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/4e336.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/54147.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/54147.json/default/QuickType.cs
index 0910243..1ff5c49 100644
--- a/base/csharp/test/inputs/json/misc/54147.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/54147.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/54d32.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/54d32.json/default/QuickType.cs
index 4f9f610..3313eba 100644
--- a/base/csharp/test/inputs/json/misc/54d32.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/54d32.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/570ec.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/570ec.json/default/QuickType.cs
index 1d49018..9887906 100644
--- a/base/csharp/test/inputs/json/misc/570ec.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/570ec.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/5dd0d.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/5eae5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/5eae5.json/default/QuickType.cs
index 6df7311..1a17aed 100644
--- a/base/csharp/test/inputs/json/misc/5eae5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/5eae5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/5eb20.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/5eb20.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/5eb20.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/5eb20.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/5f3a1.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/5f7fe.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
index e394f46..2d72ca1 100644
--- a/base/csharp/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/617e8.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/617e8.json/default/QuickType.cs
index 45e8bba..30b8400 100644
--- a/base/csharp/test/inputs/json/misc/617e8.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/617e8.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/61b66.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/61b66.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/61b66.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/61b66.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/6260a.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/6260a.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/6260a.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/6260a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/65dec.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/65dec.json/default/QuickType.cs
index 460566a..e525a06 100644
--- a/base/csharp/test/inputs/json/misc/65dec.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/65dec.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/66121.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/66121.json/default/QuickType.cs
index c3bd10e..be51bf4 100644
--- a/base/csharp/test/inputs/json/misc/66121.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/66121.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/6617c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/6617c.json/default/QuickType.cs
index b51eacd..43445b2 100644
--- a/base/csharp/test/inputs/json/misc/6617c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/6617c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/67c03.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/67c03.json/default/QuickType.cs
index 099896c..3a98f96 100644
--- a/base/csharp/test/inputs/json/misc/67c03.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/67c03.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/68c30.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/68c30.json/default/QuickType.cs
index 999bce1..45f5ceb 100644
--- a/base/csharp/test/inputs/json/misc/68c30.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/68c30.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/6c155.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/6c155.json/default/QuickType.cs
index 66e75e6..f50ad7a 100644
--- a/base/csharp/test/inputs/json/misc/6c155.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/6c155.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/6de06.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/6de06.json/default/QuickType.cs
index e598a23..148b269 100644
--- a/base/csharp/test/inputs/json/misc/6de06.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/6de06.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/6dec6.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/6dec6.json/default/QuickType.cs
index 108b50c..3f8a0ef 100644
--- a/base/csharp/test/inputs/json/misc/6dec6.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/6dec6.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/6eb00.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/6eb00.json/default/QuickType.cs
index 5bd25cb..63099f3 100644
--- a/base/csharp/test/inputs/json/misc/6eb00.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/6eb00.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/70c77.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/70c77.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/70c77.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/70c77.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/734ad.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/734ad.json/default/QuickType.cs
index e21f134..a1e1daf 100644
--- a/base/csharp/test/inputs/json/misc/734ad.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/734ad.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/75912.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/75912.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/75912.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/75912.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/7681c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/7681c.json/default/QuickType.cs
index 9d59add..c0f9e4d 100644
--- a/base/csharp/test/inputs/json/misc/7681c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/7681c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/76ae1.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/76ae1.json/default/QuickType.cs
index 2a69b3c..4a10d92 100644
--- a/base/csharp/test/inputs/json/misc/76ae1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/76ae1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/77392.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/77392.json/default/QuickType.cs
index 0e1773f..9642977 100644
--- a/base/csharp/test/inputs/json/misc/77392.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/77392.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/7d397.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/7d397.json/default/QuickType.cs
index 8ba3bbd..ca33550 100644
--- a/base/csharp/test/inputs/json/misc/7d397.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/7d397.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/7d722.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/7d722.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/7d722.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/7d722.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/7df41.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/7df41.json/default/QuickType.cs
index 9312331..3f7fc10 100644
--- a/base/csharp/test/inputs/json/misc/7df41.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/7df41.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/7dfa6.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/7eb30.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/7eb30.json/default/QuickType.cs
index 27b4d93..51430a0 100644
--- a/base/csharp/test/inputs/json/misc/7eb30.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/7eb30.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/7f568.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/7f568.json/default/QuickType.cs
index 256e432..fed6011 100644
--- a/base/csharp/test/inputs/json/misc/7f568.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/7f568.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/7fbfb.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
index efbd3cc..2b300a8 100644
--- a/base/csharp/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/80aff.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/80aff.json/default/QuickType.cs
index f7d4fba..b72cfda 100644
--- a/base/csharp/test/inputs/json/misc/80aff.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/80aff.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/82509.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/82509.json/default/QuickType.cs
index 3ef9ddc..0014bfe 100644
--- a/base/csharp/test/inputs/json/misc/82509.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/82509.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/8592b.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/8592b.json/default/QuickType.cs
index 0626995..ea5260c 100644
--- a/base/csharp/test/inputs/json/misc/8592b.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/8592b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/88130.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/88130.json/default/QuickType.cs
index 0c9b2ae..53e0281 100644
--- a/base/csharp/test/inputs/json/misc/88130.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/88130.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/8a62c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/8a62c.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/8a62c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/8a62c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/908db.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/908db.json/default/QuickType.cs
index 130ad63..427e195 100644
--- a/base/csharp/test/inputs/json/misc/908db.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/908db.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/9617f.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/9617f.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/9617f.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/9617f.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/96f7c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/96f7c.json/default/QuickType.cs
index 0d9687d..62131f2 100644
--- a/base/csharp/test/inputs/json/misc/96f7c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/96f7c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/9847b.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/9847b.json/default/QuickType.cs
index 7a242fe..552df25 100644
--- a/base/csharp/test/inputs/json/misc/9847b.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/9847b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/9929c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/9929c.json/default/QuickType.cs
index 0c9b2ae..53e0281 100644
--- a/base/csharp/test/inputs/json/misc/9929c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/9929c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/996bd.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/996bd.json/default/QuickType.cs
index 99a7a21..dcbc4cf 100644
--- a/base/csharp/test/inputs/json/misc/996bd.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/996bd.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/9a503.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/9a503.json/default/QuickType.cs
index 81e7a69..3f150e7 100644
--- a/base/csharp/test/inputs/json/misc/9a503.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/9a503.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/9ac3b.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
index 558ea13..d413beb 100644
--- a/base/csharp/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/9eed5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/9eed5.json/default/QuickType.cs
index d561408..3a293bc 100644
--- a/base/csharp/test/inputs/json/misc/9eed5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/9eed5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/a0496.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/a0496.json/default/QuickType.cs
index e98f37a..63863ba 100644
--- a/base/csharp/test/inputs/json/misc/a0496.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/a0496.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/a1eca.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/a1eca.json/default/QuickType.cs
index 0c9b2ae..53e0281 100644
--- a/base/csharp/test/inputs/json/misc/a1eca.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/a1eca.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/a3d8c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
index d6ac077..1f3fdab 100644
--- a/base/csharp/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/a45b0.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/a45b0.json/default/QuickType.cs
index 247f081..63d0adf 100644
--- a/base/csharp/test/inputs/json/misc/a45b0.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/a45b0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/a71df.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/a71df.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/a71df.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/a71df.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/a9691.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/a9691.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/a9691.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/a9691.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/ab0d1.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
index 247f081..63d0adf 100644
--- a/base/csharp/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/abb4b.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/abb4b.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/abb4b.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/abb4b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/ac944.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/ac944.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/ac944.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/ac944.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/ad8be.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/ad8be.json/default/QuickType.cs
index fc571b4..c54bd05 100644
--- a/base/csharp/test/inputs/json/misc/ad8be.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/ad8be.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/ae7f0.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
index 0836034..8f95579 100644
--- a/base/csharp/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/ae9ca.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
index 518b51d..001c894 100644
--- a/base/csharp/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/af2d1.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/af2d1.json/default/QuickType.cs
index df488c8..71ca36b 100644
--- a/base/csharp/test/inputs/json/misc/af2d1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/af2d1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/b4865.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/b4865.json/default/QuickType.cs
index 0bd56e5..7eb2ac8 100644
--- a/base/csharp/test/inputs/json/misc/b4865.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/b4865.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/b6f2c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/b6fe5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
index 73ffea3..37d9647 100644
--- a/base/csharp/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/b9f64.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/b9f64.json/default/QuickType.cs
index c8bd6cf..e5b8eac 100644
--- a/base/csharp/test/inputs/json/misc/b9f64.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/b9f64.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/bb1ec.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/be234.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/be234.json/default/QuickType.cs
index 3a804f8..39440d5 100644
--- a/base/csharp/test/inputs/json/misc/be234.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/be234.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/c0356.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/c0356.json/default/QuickType.cs
index 6d9787c..25b1855 100644
--- a/base/csharp/test/inputs/json/misc/c0356.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/c0356.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/c0a3a.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/c3303.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/c3303.json/default/QuickType.cs
index a088860..7e7d58d 100644
--- a/base/csharp/test/inputs/json/misc/c3303.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/c3303.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/c6cfd.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
index dff0708..da75360 100644
--- a/base/csharp/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/c8c7e.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
index 39a939e..f80e733 100644
--- a/base/csharp/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/cb0cc.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
index 3f19df1..de0de5e 100644
--- a/base/csharp/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/cb81e.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/cb81e.json/default/QuickType.cs
index 02a6216..824f33a 100644
--- a/base/csharp/test/inputs/json/misc/cb81e.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/cb81e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/ccd18.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/ccd18.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/ccd18.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/ccd18.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/cd238.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/cd238.json/default/QuickType.cs
index ef4e6a7..3d991fd 100644
--- a/base/csharp/test/inputs/json/misc/cd238.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/cd238.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/cd463.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/cd463.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/cd463.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/cd463.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/cda6c.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/cda6c.json/default/QuickType.cs
index f06252f..bf9e032 100644
--- a/base/csharp/test/inputs/json/misc/cda6c.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/cda6c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/cf0d8.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
index 0c9b2ae..53e0281 100644
--- a/base/csharp/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/cfbce.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/cfbce.json/default/QuickType.cs
index bc29e6f..dcd3ba1 100644
--- a/base/csharp/test/inputs/json/misc/cfbce.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/cfbce.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/d0908.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/d0908.json/default/QuickType.cs
index e0ecd30..69e03a7 100644
--- a/base/csharp/test/inputs/json/misc/d0908.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/d0908.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/d23d5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/d23d5.json/default/QuickType.cs
index ff2f232..316ddb7 100644
--- a/base/csharp/test/inputs/json/misc/d23d5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/d23d5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/dbfb3.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
index 9eadcfe..e926827 100644
--- a/base/csharp/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/dc44f.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/dc44f.json/default/QuickType.cs
index 0772b2a..58eab81 100644
--- a/base/csharp/test/inputs/json/misc/dc44f.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/dc44f.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/dd1ce.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
index 0772b2a..58eab81 100644
--- a/base/csharp/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/dec3a.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/dec3a.json/default/QuickType.cs
index a08f0dc..931ae32 100644
--- a/base/csharp/test/inputs/json/misc/dec3a.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/dec3a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/df957.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/df957.json/default/QuickType.cs
index 0c9b2ae..53e0281 100644
--- a/base/csharp/test/inputs/json/misc/df957.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/df957.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/e0ac7.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
index fed2ac2..2cf2fc0 100644
--- a/base/csharp/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/e2915.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/e2915.json/default/QuickType.cs
index 8144f1c..d8e1581 100644
--- a/base/csharp/test/inputs/json/misc/e2915.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/e2915.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/e2a58.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/e2a58.json/default/QuickType.cs
index 360ed1a..4e4bf08 100644
--- a/base/csharp/test/inputs/json/misc/e2a58.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/e2a58.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/e324e.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/e324e.json/default/QuickType.cs
index f70f050..2bd824b 100644
--- a/base/csharp/test/inputs/json/misc/e324e.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/e324e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/e53b5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/e53b5.json/default/QuickType.cs
index 6bcc25d..43532af 100644
--- a/base/csharp/test/inputs/json/misc/e53b5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/e53b5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/e64a0.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/e64a0.json/default/QuickType.cs
index caa3d39..3954493 100644
--- a/base/csharp/test/inputs/json/misc/e64a0.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/e64a0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/e8a0b.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
index 247f081..63d0adf 100644
--- a/base/csharp/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/e8b04.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/e8b04.json/default/QuickType.cs
index 70f9a35..beb276e 100644
--- a/base/csharp/test/inputs/json/misc/e8b04.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/e8b04.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/ed095.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/ed095.json/default/QuickType.cs
index 4c88ec2..efeead0 100644
--- a/base/csharp/test/inputs/json/misc/ed095.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/ed095.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/f22f5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/f22f5.json/default/QuickType.cs
index 4dcd3df..2c38b7d 100644
--- a/base/csharp/test/inputs/json/misc/f22f5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/f22f5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/f3139.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/f3139.json/default/QuickType.cs
index 7a242fe..552df25 100644
--- a/base/csharp/test/inputs/json/misc/f3139.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/f3139.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/f3edf.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/f3edf.json/default/QuickType.cs
index 247f081..63d0adf 100644
--- a/base/csharp/test/inputs/json/misc/f3edf.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/f3edf.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/f466a.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/f466a.json/default/QuickType.cs
index 247f081..63d0adf 100644
--- a/base/csharp/test/inputs/json/misc/f466a.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/f466a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/f6a65.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/f6a65.json/default/QuickType.cs
index 7521316..cc52694 100644
--- a/base/csharp/test/inputs/json/misc/f6a65.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/f6a65.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/f74d5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/f74d5.json/default/QuickType.cs
index e28e6e3..053283b 100644
--- a/base/csharp/test/inputs/json/misc/f74d5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/f74d5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/f82d9.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/f82d9.json/default/QuickType.cs
index e818946..d449c0a 100644
--- a/base/csharp/test/inputs/json/misc/f82d9.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/f82d9.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/f974d.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/f974d.json/default/QuickType.cs
index be789b0..2dda31c 100644
--- a/base/csharp/test/inputs/json/misc/f974d.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/f974d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/faff5.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/faff5.json/default/QuickType.cs
index dbcf005..7153a58 100644
--- a/base/csharp/test/inputs/json/misc/faff5.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/faff5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/fcca3.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/fcca3.json/default/QuickType.cs
index d0e5cd8..9fef594 100644
--- a/base/csharp/test/inputs/json/misc/fcca3.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/fcca3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/misc/fd329.json/default/QuickType.cs b/head/csharp/test/inputs/json/misc/fd329.json/default/QuickType.cs
index faec034..7ff69c2 100644
--- a/base/csharp/test/inputs/json/misc/fd329.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/misc/fd329.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/blns-object.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/blns-object.json/default/QuickType.cs
index 73f1663..f283279 100644
--- a/base/csharp/test/inputs/json/priority/blns-object.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/blns-object.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug2037.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug2037.json/default/QuickType.cs
index c62757e..90cf3b2 100644
--- a/base/csharp/test/inputs/json/priority/bug2037.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug2037.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug2521.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug2521.json/default/QuickType.cs
index f5b852b..ec8b38c 100644
--- a/base/csharp/test/inputs/json/priority/bug2521.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug2521.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug2590.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug2590.json/default/QuickType.cs
index 634a868..a3657bd 100644
--- a/base/csharp/test/inputs/json/priority/bug2590.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug2590.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug2663.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug2663.json/default/QuickType.cs
index bcfc856..7ebf67e 100644
--- a/base/csharp/test/inputs/json/priority/bug2663.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug2663.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug2793.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug2793.json/default/QuickType.cs
index c45839f..3545334 100644
--- a/base/csharp/test/inputs/json/priority/bug2793.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug2793.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug427.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug427.json/default/QuickType.cs
index 35b5774..f839c02 100644
--- a/base/csharp/test/inputs/json/priority/bug427.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug427.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug790.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug790.json/default/QuickType.cs
index d655c75..8a8d5e4 100644
--- a/base/csharp/test/inputs/json/priority/bug790.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug790.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug855-short.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
index 82bef00..e782478 100644
--- a/base/csharp/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/bug863.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/bug863.json/default/QuickType.cs
index a4bd3d6..1c25ef4 100644
--- a/base/csharp/test/inputs/json/priority/bug863.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/bug863.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
index eea7271..9b30510 100644
--- a/base/csharp/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index 144752f..d4c6a2d 100644
--- a/base/csharp/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
index cedf88f..9011a24 100644
--- a/base/csharp/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index 37d309b..841ae62 100644
--- a/base/csharp/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index b1ae5c3..0e013be 100644
--- a/base/csharp/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations1.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations1.json/default/QuickType.cs
index f5912dc..de492c0 100644
--- a/base/csharp/test/inputs/json/priority/combinations1.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 5202ab5..2c5ce1c 100644
--- a/base/csharp/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
index e9b769e..df99d9e 100644
--- a/base/csharp/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index 70f1b3f..ee69b8e 100644
--- a/base/csharp/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
index d78a0a6..5fe328d 100644
--- a/base/csharp/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index 5bf2069..285919f 100644
--- a/base/csharp/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index c4fd969..24ff263 100644
--- a/base/csharp/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations2.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations2.json/default/QuickType.cs
index 61f6462..5b38b06 100644
--- a/base/csharp/test/inputs/json/priority/combinations2.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations2.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 71436dd..a1a4b3e 100644
--- a/base/csharp/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
index 765ea8b..c880c4f 100644
--- a/base/csharp/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index 1d51bfc..ede0c23 100644
--- a/base/csharp/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
index 164f5da..7241136 100644
--- a/base/csharp/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index 0772afe..4dfc3b2 100644
--- a/base/csharp/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index a080404..0a36cba 100644
--- a/base/csharp/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations3.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations3.json/default/QuickType.cs
index 522ba6c..be6c095 100644
--- a/base/csharp/test/inputs/json/priority/combinations3.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 0cb0045..3662536 100644
--- a/base/csharp/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
index 2ea011b..ccc9689 100644
--- a/base/csharp/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index a637fd9..6fb48df 100644
--- a/base/csharp/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
index 4c926b6..b26c709 100644
--- a/base/csharp/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index a1427e8..e6f6464 100644
--- a/base/csharp/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index f95a3f2..806905a 100644
--- a/base/csharp/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations4.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations4.json/default/QuickType.cs
index d11c785..7df9222 100644
--- a/base/csharp/test/inputs/json/priority/combinations4.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations4.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
index c8ebf66..614e744 100644
--- a/base/csharp/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
index 862259b..6670275 100644
--- a/base/csharp/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/combined-enum.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
index e289a90..5f9fcdb 100644
--- a/base/csharp/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
index 7332769..d068e57 100644
--- a/base/csharp/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/empty-enum.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
index 79a2015..49d416e 100644
--- a/base/csharp/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/identifiers.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/identifiers.json/default/QuickType.cs
index e477a0a..507f648 100644
--- a/base/csharp/test/inputs/json/priority/identifiers.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/identifiers.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
index d9f851a..7d276b1 100644
--- a/base/csharp/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
index 2dbe3b9..51d7e65 100644
--- a/base/csharp/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/keywords.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/keywords.json/default/QuickType.cs
index dd675f2..a9ce80a 100644
--- a/base/csharp/test/inputs/json/priority/keywords.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/keywords.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
index 6d3afd0..8947cb6 100644
--- a/base/csharp/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/list.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/list.json/default/QuickType.cs
index 0a507bb..10cd0c2 100644
--- a/base/csharp/test/inputs/json/priority/list.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/list.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/name-style.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/name-style.json/default/QuickType.cs
index 64c821d..876262e 100644
--- a/base/csharp/test/inputs/json/priority/name-style.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/name-style.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
index ee9cbcb..d7b27a4 100644
--- a/base/csharp/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/nested-objects.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
index a74854e..8122113 100644
--- a/base/csharp/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/no-classes.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/no-classes.json/default/QuickType.cs
index e20dc09..69877f7 100644
--- a/base/csharp/test/inputs/json/priority/no-classes.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/no-classes.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
index 06cbb20..4f71fa4 100644
--- a/base/csharp/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/number-map.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/number-map.json/default/QuickType.cs
index d2ef21b..f5a4685 100644
--- a/base/csharp/test/inputs/json/priority/number-map.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/number-map.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/omit-empty.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
index 485d426..f779662 100644
--- a/base/csharp/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/optional-union.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/optional-union.json/default/QuickType.cs
index 8dd9785..91f6c12 100644
--- a/base/csharp/test/inputs/json/priority/optional-union.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/optional-union.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
index 50b93ba..0970de3 100644
--- a/base/csharp/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/php-validation.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/php-validation.json/default/QuickType.cs
index 7fe1dc4..b7676ca 100644
--- a/base/csharp/test/inputs/json/priority/php-validation.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/php-validation.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/recursive.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/recursive.json/default/QuickType.cs
index a86474f..f04a555 100644
--- a/base/csharp/test/inputs/json/priority/recursive.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/recursive.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
index ddddf28..4d765f1 100644
--- a/base/csharp/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
index 60e3ad7..5ccace6 100644
--- a/base/csharp/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/unions.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/unions.json/default/QuickType.cs
index 3cf7adb..f202c36 100644
--- a/base/csharp/test/inputs/json/priority/unions.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/unions.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/url.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/url.json/default/QuickType.cs
index 82d878e..e9b4e56 100644
--- a/base/csharp/test/inputs/json/priority/url.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/url.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/priority/uuids.json/default/QuickType.cs b/head/csharp/test/inputs/json/priority/uuids.json/default/QuickType.cs
index 0da12fc..1628437 100644
--- a/base/csharp/test/inputs/json/priority/uuids.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/priority/uuids.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
index be789b0..2dda31c 100644
--- a/base/csharp/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/getting-started.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/getting-started.json/default/QuickType.cs
index 7f7b144..bb9e90f 100644
--- a/base/csharp/test/inputs/json/samples/getting-started.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/getting-started.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/github-events.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/github-events.json/default/QuickType.cs
index 3731fdd..7e5f230 100644
--- a/base/csharp/test/inputs/json/samples/github-events.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/github-events.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
index 3cb444f..4d6555b 100644
--- a/base/csharp/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/null-safe.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/null-safe.json/default/QuickType.cs
index e627c1c..6c3549b 100644
--- a/base/csharp/test/inputs/json/samples/null-safe.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/null-safe.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/pokedex.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/pokedex.json/default/QuickType.cs
index c4528d5..728f917 100644
--- a/base/csharp/test/inputs/json/samples/pokedex.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/pokedex.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/reddit.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/reddit.json/default/QuickType.cs
index 1497b21..92b432f 100644
--- a/base/csharp/test/inputs/json/samples/reddit.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/reddit.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/simple-object.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/simple-object.json/default/QuickType.cs
index e91ed27..e7f1757 100644
--- a/base/csharp/test/inputs/json/samples/simple-object.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/simple-object.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/spotify-album.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
index 49db194..da37407 100644
--- a/base/csharp/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
index faec034..7ff69c2 100644
--- a/base/csharp/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp/test/inputs/json/samples/us-senators.json/default/QuickType.cs b/head/csharp/test/inputs/json/samples/us-senators.json/default/QuickType.cs
index 2b79e7c..ff082cc 100644
--- a/base/csharp/test/inputs/json/samples/us-senators.json/default/QuickType.cs
+++ b/head/csharp/test/inputs/json/samples/us-senators.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/00c36.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/00c36.json/default/QuickType.cs
index f7e21c1..3cf6f1d 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/00c36.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/00c36.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -357,3 +359,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/00ec5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/00ec5.json/default/QuickType.cs
index 8345b69..278c072 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/00ec5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/00ec5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -351,3 +353,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/010b1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/010b1.json/default/QuickType.cs
index 41391d3..ddc71ce 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/010b1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/010b1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -214,3 +216,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/016af.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/016af.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/016af.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/016af.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/033b1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/033b1.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/033b1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/033b1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/050b0.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/050b0.json/default/QuickType.cs
index 23aea07..2298124 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/050b0.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/050b0.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -455,3 +457,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/06bee.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/06bee.json/default/QuickType.cs
index a9480d7..6815f01 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/06bee.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/06bee.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -403,3 +405,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/07540.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/07540.json/default/QuickType.cs
index 2939dbb..fdb9509 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/07540.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/07540.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/0779f.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/0779f.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/0779f.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/0779f.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/07c75.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/07c75.json/default/QuickType.cs
index 48c65af..65658bb 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/07c75.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/07c75.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -229,3 +231,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/09f54.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/09f54.json/default/QuickType.cs
index 9ff85ca..d125dc8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/09f54.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/09f54.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -198,3 +200,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/0a358.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/0a358.json/default/QuickType.cs
index 2306952..1e4e20a 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/0a358.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/0a358.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -219,3 +221,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/0a91a.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/0a91a.json/default/QuickType.cs
index cfbee97..bb059aa 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/0a91a.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/0a91a.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -960,3 +962,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/0b91a.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/0b91a.json/default/QuickType.cs
index e839a37..6a723e4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/0b91a.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/0b91a.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -306,3 +308,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/0cffa.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/0cffa.json/default/QuickType.cs
index 8d218ea..7d48194 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/0cffa.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/0cffa.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -642,3 +644,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/0e0c2.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
index 50364e9..a95fe62 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -472,3 +474,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/0fecf.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/0fecf.json/default/QuickType.cs
index 2c0434d..5de6541 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/0fecf.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/0fecf.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/10be4.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/10be4.json/default/QuickType.cs
index afe84f3..4c0415f 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/10be4.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/10be4.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -510,3 +512,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/112b5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/112b5.json/default/QuickType.cs
index 121d6ac..5f2f284 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/112b5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/112b5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -199,3 +201,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/127a1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/127a1.json/default/QuickType.cs
index 916ac09..8ab481d 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/127a1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/127a1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -635,3 +637,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/13d8d.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/13d8d.json/default/QuickType.cs
index bdbc686..15c0c04 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/13d8d.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/13d8d.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -233,3 +235,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/14d38.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/14d38.json/default/QuickType.cs
index 25dcea8..3cc29d0 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/14d38.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/14d38.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -183,3 +185,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/167d6.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/167d6.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/167d6.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/167d6.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/16bc5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/16bc5.json/default/QuickType.cs
index 598cfb4..bc1a3e4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/16bc5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/16bc5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -502,3 +504,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/176f1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/176f1.json/default/QuickType.cs
index e0736b2..11308b8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/176f1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/176f1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -253,3 +255,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/1a7f5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
index 41391d3..ddc71ce 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -214,3 +216,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/1b28c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/1b28c.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/1b28c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/1b28c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/1b409.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/1b409.json/default/QuickType.cs
index a0187ae..4c9aae2 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/1b409.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/1b409.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -664,3 +666,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/2465e.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/2465e.json/default/QuickType.cs
index c9f001f..5ecefc7 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/2465e.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/2465e.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -348,3 +350,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/24f52.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/24f52.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/24f52.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/24f52.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/262f0.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/262f0.json/default/QuickType.cs
index cdf52b3..7d80e78 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/262f0.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/262f0.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -544,3 +546,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/26b49.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/26b49.json/default/QuickType.cs
index ae7594d..8cf5e96 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/26b49.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/26b49.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -609,3 +611,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/26c9c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/26c9c.json/default/QuickType.cs
index b003724..398c89b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/26c9c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/26c9c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -803,3 +805,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/27332.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/27332.json/default/QuickType.cs
index ae34f44..70baf75 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/27332.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/27332.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -846,3 +848,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/29f47.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/29f47.json/default/QuickType.cs
index 4723dae..2a86854 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/29f47.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/29f47.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -896,3 +898,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/2d4e2.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
index 64fc95b..1546762 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -807,3 +809,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/2df80.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/2df80.json/default/QuickType.cs
index 4182ef4..23dbea2 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/2df80.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/2df80.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -575,3 +577,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/31189.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/31189.json/default/QuickType.cs
index 336bf34..574457e 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/31189.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/31189.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -314,3 +316,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/32431.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/32431.json/default/QuickType.cs
index 4c11004..0f14c2e 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/32431.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/32431.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -509,3 +511,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/32d5c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/32d5c.json/default/QuickType.cs
index 3149eae..0a281a0 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/32d5c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/32d5c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -192,3 +194,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/337ed.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/337ed.json/default/QuickType.cs
index a0d8154..913c0cb 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/337ed.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/337ed.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -474,3 +476,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/33d2e.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/33d2e.json/default/QuickType.cs
index 6100e3e..6c266ca 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/33d2e.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/33d2e.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -542,3 +544,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/34702.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/34702.json/default/QuickType.cs
index d1bcc6e..02778ef 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/34702.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/34702.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -637,3 +639,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/3536b.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/3536b.json/default/QuickType.cs
index 6dabab0..a445480 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/3536b.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/3536b.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -313,3 +315,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/3659d.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/3659d.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/3659d.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/3659d.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/36d5d.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/36d5d.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/36d5d.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/36d5d.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/3a6b3.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/3e9a3.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
index e0736b2..11308b8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -253,3 +255,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/3f1ce.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
index 9c212a5..749f920 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -532,3 +534,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/421d4.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/421d4.json/default/QuickType.cs
index 512fc4f..d6f027d 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/421d4.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/421d4.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -586,3 +588,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/437e7.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/437e7.json/default/QuickType.cs
index 6272ed3..72fecb5 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/437e7.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/437e7.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -597,3 +599,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/43970.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/43970.json/default/QuickType.cs
index cbf5b31..5d1ea55 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/43970.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/43970.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/43eaf.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/43eaf.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/43eaf.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/43eaf.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/458db.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/458db.json/default/QuickType.cs
index f459522..546dbd1 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/458db.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/458db.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -331,3 +333,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/4961a.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/4961a.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/4961a.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/4961a.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/4a0d7.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/4a455.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/4a455.json/default/QuickType.cs
index d803e30..3bc1a9f 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/4a455.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/4a455.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -345,3 +347,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/4c547.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/4c547.json/default/QuickType.cs
index 598cfb4..bc1a3e4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/4c547.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/4c547.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -502,3 +504,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/4d6fb.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
index 9e37c17..1150d19 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -778,3 +780,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/4e336.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/4e336.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/4e336.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/4e336.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/54147.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/54147.json/default/QuickType.cs
index 07d49ec..b33a9e8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/54147.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/54147.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -211,3 +213,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/54d32.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/54d32.json/default/QuickType.cs
index ea700da..a045dfb 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/54d32.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/54d32.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -256,3 +258,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/570ec.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/570ec.json/default/QuickType.cs
index 5724d3c..a51499a 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/570ec.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/570ec.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -282,3 +284,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/5dd0d.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/5eae5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/5eae5.json/default/QuickType.cs
index a311511..a677806 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/5eae5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/5eae5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -176,3 +178,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/5eb20.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/5eb20.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/5eb20.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/5eb20.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/5f3a1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/5f7fe.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
index edc35f9..1d8e1bd 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -802,3 +804,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/617e8.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/617e8.json/default/QuickType.cs
index d608706..fd2b1d9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/617e8.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/617e8.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -798,3 +800,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/61b66.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/61b66.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/61b66.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/61b66.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/6260a.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/6260a.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/6260a.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/6260a.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/65dec.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/65dec.json/default/QuickType.cs
index 359cd02..1591a84 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/65dec.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/65dec.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -648,3 +650,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/66121.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/66121.json/default/QuickType.cs
index 3a7d686..5199e88 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/66121.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/66121.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -403,3 +405,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/6617c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/6617c.json/default/QuickType.cs
index a4d6b1a..dd21c38 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/6617c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/6617c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -183,3 +185,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/67c03.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/67c03.json/default/QuickType.cs
index aa45caa..21f5a9b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/67c03.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/67c03.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -183,3 +185,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/68c30.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/68c30.json/default/QuickType.cs
index 9a2951e..6c99418 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/68c30.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/68c30.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -261,3 +263,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/6c155.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/6c155.json/default/QuickType.cs
index 3340ecf..375e715 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/6c155.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/6c155.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -349,3 +351,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/6de06.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/6de06.json/default/QuickType.cs
index 0bcce53..547acac 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/6de06.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/6de06.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -715,3 +717,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/6dec6.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/6dec6.json/default/QuickType.cs
index 1b5694e..050e190 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/6dec6.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/6dec6.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -544,3 +546,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/6eb00.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/6eb00.json/default/QuickType.cs
index 52871a2..8092872 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/6eb00.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/6eb00.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/70c77.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/70c77.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/70c77.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/70c77.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/734ad.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/734ad.json/default/QuickType.cs
index e0ecbca..c2889e1 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/734ad.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/734ad.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -486,3 +488,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/75912.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/75912.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/75912.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/75912.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/7681c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/7681c.json/default/QuickType.cs
index bc2445a..6599362 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/7681c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/7681c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -647,3 +649,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/76ae1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/76ae1.json/default/QuickType.cs
index dc4af5b..4e1cdc8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/76ae1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/76ae1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -738,3 +740,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/77392.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/77392.json/default/QuickType.cs
index 7550b05..2d57b76 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/77392.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/77392.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -314,3 +316,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/7d397.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/7d397.json/default/QuickType.cs
index 4df4754..be9b308 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/7d397.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/7d397.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -392,3 +394,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/7d722.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/7d722.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/7d722.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/7d722.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/7df41.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/7df41.json/default/QuickType.cs
index 53d18b9..2bf61de 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/7df41.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/7df41.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -195,3 +197,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/7dfa6.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/7eb30.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/7eb30.json/default/QuickType.cs
index df8aa50..c360d64 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/7eb30.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/7eb30.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -443,3 +445,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/7f568.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/7f568.json/default/QuickType.cs
index f70ef8c..5f514d8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/7f568.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/7f568.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -307,3 +309,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/7fbfb.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
index 4c8e6d2..20b44ce 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -357,3 +359,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/80aff.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/80aff.json/default/QuickType.cs
index 5dba105..a69165c 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/80aff.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/80aff.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -223,3 +225,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/82509.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/82509.json/default/QuickType.cs
index 55dfd53..d0eb3d2 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/82509.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/82509.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/8592b.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/8592b.json/default/QuickType.cs
index 4d09096..244faf9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/8592b.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/8592b.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -723,3 +725,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/88130.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/88130.json/default/QuickType.cs
index 598cfb4..bc1a3e4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/88130.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/88130.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -502,3 +504,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/8a62c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/8a62c.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/8a62c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/8a62c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/908db.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/908db.json/default/QuickType.cs
index 40ced98..0ccdc80 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/908db.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/908db.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -182,3 +184,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/9617f.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/9617f.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/9617f.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/9617f.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/96f7c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/96f7c.json/default/QuickType.cs
index 183f568..51eb15e 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/96f7c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/96f7c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -184,3 +186,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/9847b.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/9847b.json/default/QuickType.cs
index 13843f6..0aaed7c 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/9847b.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/9847b.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/9929c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/9929c.json/default/QuickType.cs
index 598cfb4..bc1a3e4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/9929c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/9929c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -502,3 +504,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/996bd.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/996bd.json/default/QuickType.cs
index 0774beb..da8aec5 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/996bd.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/996bd.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -392,3 +394,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/9a503.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/9a503.json/default/QuickType.cs
index aac9973..466c666 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/9a503.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/9a503.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -271,3 +273,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/9ac3b.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
index 357a7fb..d384843 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -313,3 +315,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/9eed5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/9eed5.json/default/QuickType.cs
index 802a1f0..cc79df2 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/9eed5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/9eed5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -266,3 +268,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/a0496.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/a0496.json/default/QuickType.cs
index e72526b..202ea50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/a0496.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/a0496.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -291,3 +293,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/a1eca.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/a1eca.json/default/QuickType.cs
index 598cfb4..bc1a3e4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/a1eca.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/a1eca.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -502,3 +504,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/a3d8c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
index f7ed124..a932dee 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -616,3 +618,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/a45b0.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/a45b0.json/default/QuickType.cs
index 41391d3..ddc71ce 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/a45b0.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/a45b0.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -214,3 +216,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/a71df.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/a71df.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/a71df.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/a71df.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/a9691.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/a9691.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/a9691.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/a9691.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/ab0d1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
index 41391d3..ddc71ce 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -214,3 +216,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/abb4b.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/abb4b.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/abb4b.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/abb4b.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/ac944.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/ac944.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/ac944.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/ac944.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/ad8be.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/ad8be.json/default/QuickType.cs
index afe84f3..4c0415f 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/ad8be.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/ad8be.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -510,3 +512,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/ae7f0.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
index e5abd6d..87836d8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -625,3 +627,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/ae9ca.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
index fcabe82..913afe3 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -445,3 +447,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/af2d1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/af2d1.json/default/QuickType.cs
index d7b5155..6e83ec4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/af2d1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/af2d1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -776,3 +778,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/b4865.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/b4865.json/default/QuickType.cs
index 77a4f76..047d816 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/b4865.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/b4865.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -343,3 +345,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/b6f2c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/b6fe5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
index d38ff07..6550422 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -176,3 +178,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/b9f64.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/b9f64.json/default/QuickType.cs
index fef1aa2..0dfcb37 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/b9f64.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/b9f64.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/bb1ec.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/be234.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/be234.json/default/QuickType.cs
index e684ca5..7497746 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/be234.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/be234.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -849,3 +851,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/c0356.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/c0356.json/default/QuickType.cs
index 39c812b..8c96c36 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/c0356.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/c0356.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -194,3 +196,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/c0a3a.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/c3303.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/c3303.json/default/QuickType.cs
index 1b153c4..c40200f 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/c3303.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/c3303.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -633,3 +635,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/c6cfd.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
index c209474..21edd8b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/c8c7e.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
index 0068637..1dea7ee 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -357,3 +359,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/cb0cc.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
index 528039c..ca19d98 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -290,3 +292,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/cb81e.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/cb81e.json/default/QuickType.cs
index 9179cc2..5a85acc 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/cb81e.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/cb81e.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -187,3 +189,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/ccd18.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/ccd18.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/ccd18.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/ccd18.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/cd238.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/cd238.json/default/QuickType.cs
index eda0de0..1b1b2b9 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/cd238.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/cd238.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -295,3 +297,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/cd463.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/cd463.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/cd463.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/cd463.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/cda6c.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/cda6c.json/default/QuickType.cs
index b8cdef0..b92981c 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/cda6c.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/cda6c.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -358,3 +360,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/cf0d8.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
index 598cfb4..bc1a3e4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -502,3 +504,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/cfbce.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/cfbce.json/default/QuickType.cs
index 5dfcb5e..3300582 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/cfbce.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/cfbce.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/d0908.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/d0908.json/default/QuickType.cs
index 2dcca1a..f724e50 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/d0908.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/d0908.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/d23d5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/d23d5.json/default/QuickType.cs
index 271c7ab..f9a9e76 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/d23d5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/d23d5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -219,3 +221,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/dbfb3.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
index 0991299..334543a 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -539,3 +541,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/dc44f.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/dc44f.json/default/QuickType.cs
index f6e4cb1..a09d364 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/dc44f.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/dc44f.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -891,3 +893,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/dd1ce.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
index f6e4cb1..a09d364 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -891,3 +893,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/dec3a.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/dec3a.json/default/QuickType.cs
index c109819..1628c3b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/dec3a.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/dec3a.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -382,3 +384,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/df957.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/df957.json/default/QuickType.cs
index 598cfb4..bc1a3e4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/df957.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/df957.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -502,3 +504,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/e0ac7.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
index 33095a3..b23bf6b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -600,3 +602,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/e2915.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/e2915.json/default/QuickType.cs
index 6eea5fc..faa638e 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/e2915.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/e2915.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -532,3 +534,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/e2a58.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/e2a58.json/default/QuickType.cs
index 6e3e877..a2c2d4f 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/e2a58.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/e2a58.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/e324e.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/e324e.json/default/QuickType.cs
index cd2ea15..0bf04d2 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/e324e.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/e324e.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -362,3 +364,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/e53b5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/e53b5.json/default/QuickType.cs
index 5a065fc..f24b1b2 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/e53b5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/e53b5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -358,3 +360,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/e64a0.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/e64a0.json/default/QuickType.cs
index 121d6ac..5f2f284 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/e64a0.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/e64a0.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -199,3 +201,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/e8a0b.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
index 41391d3..ddc71ce 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -214,3 +216,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/e8b04.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/e8b04.json/default/QuickType.cs
index b7df8b4..74bfd00 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/e8b04.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/e8b04.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -1386,3 +1388,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/ed095.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/ed095.json/default/QuickType.cs
index 9566db6..60da24a 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/ed095.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/ed095.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -157,3 +159,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/f22f5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/f22f5.json/default/QuickType.cs
index ad1222e..03e2d73 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/f22f5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/f22f5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -595,3 +597,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/f3139.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/f3139.json/default/QuickType.cs
index 13843f6..0aaed7c 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/f3139.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/f3139.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/f3edf.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/f3edf.json/default/QuickType.cs
index 41391d3..ddc71ce 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/f3edf.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/f3edf.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -214,3 +216,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/f466a.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/f466a.json/default/QuickType.cs
index 41391d3..ddc71ce 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/f466a.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/f466a.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -214,3 +216,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/f6a65.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/f6a65.json/default/QuickType.cs
index 4383799..5f7027e 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/f6a65.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/f6a65.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -652,3 +654,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/f74d5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/f74d5.json/default/QuickType.cs
index 90acaa0..0149f39 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/f74d5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/f74d5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -608,3 +610,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/f82d9.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/f82d9.json/default/QuickType.cs
index 622079f..2b2d79b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/f82d9.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/f82d9.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -405,3 +407,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/f974d.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/f974d.json/default/QuickType.cs
index c9456ba..6b3790b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/f974d.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/f974d.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -180,3 +182,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/faff5.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/faff5.json/default/QuickType.cs
index 86d1527..337b7c8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/faff5.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/faff5.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/fcca3.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/fcca3.json/default/QuickType.cs
index b4f3dd2..947bd42 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/fcca3.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/fcca3.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -893,3 +895,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/misc/fd329.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/misc/fd329.json/default/QuickType.cs
index 9ff85ca..d125dc8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/misc/fd329.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/misc/fd329.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -198,3 +200,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/blns-object.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/blns-object.json/default/QuickType.cs
index c213076..50c0769 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/blns-object.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/blns-object.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2571,3 +2573,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2037.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2037.json/default/QuickType.cs
index 2390978..d406120 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2037.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2037.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -182,3 +184,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2521.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2521.json/default/QuickType.cs
index 570983a..0e79c46 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2521.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2521.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2590.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2590.json/default/QuickType.cs
index 831927d..a2c6858 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2590.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2590.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -179,3 +181,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2663.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2663.json/default/QuickType.cs
index 140b1c3..c00c772 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2663.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2663.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2793.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2793.json/default/QuickType.cs
index ad950ca..b2bbb99 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug2793.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug2793.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -183,3 +185,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug427.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug427.json/default/QuickType.cs
index 432744f..c6ab178 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug427.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug427.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2268,3 +2270,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug790.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug790.json/default/QuickType.cs
index 6432beb..08f9f74 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug790.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug790.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -192,3 +194,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug855-short.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
index 4058ef3..e9ecde3 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -205,3 +207,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/bug863.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/bug863.json/default/QuickType.cs
index 8e13301..5f9caaa 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/bug863.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/bug863.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -667,3 +669,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
index 59a8a95..2d2d8db 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -203,3 +205,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index af96ff5..9d4bea4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2991,3 +2993,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
index d026df7..b3b7713 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2991,3 +2993,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index c1c2ef9..da3028b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3372,3 +3374,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index f54ff87..fefed39 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2991,3 +2993,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/default/QuickType.cs
index c9bf49b..b39b990 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2991,3 +2993,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 042e899..c314a7b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2206,3 +2208,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
index d4d2fe1..86e3d94 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2991,3 +2993,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index d16805c..30466be 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2966,3 +2968,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
index 85c6f09..d9e6e9f 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2966,3 +2968,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index 87606a4..278c472 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3359,3 +3361,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index af4b235..482fa15 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2966,3 +2968,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/default/QuickType.cs
index 7a5f02a..b6874c5 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2966,3 +2968,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 1a64b4a..fc7b636 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2247,3 +2249,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
index 4e1f9e4..e70ce9c 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2966,3 +2968,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index 565d4e1..2c7858d 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3288,3 +3290,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
index f3360be..06e1e86 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3288,3 +3290,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index 466402a..c7ab0a1 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3696,3 +3698,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index fd137d2..6c67e83 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3288,3 +3290,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/default/QuickType.cs
index f466584..b5b23d5 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3288,3 +3290,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
index a490082..981c01d 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2359,3 +2361,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
index 2eb00ef..ecd28c0 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3288,3 +3290,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index b9cb31d..c54d9c4 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3857,3 +3859,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
index ae2af94..e4f8204 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3857,3 +3859,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index 4f4256e..fd282ee 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -4343,3 +4345,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index f3d2a1c..b737af5 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3857,3 +3859,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/default/QuickType.cs
index 7d90f4d..e51d450 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3857,3 +3859,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 5fe1781..faf7e14 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -2781,3 +2783,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
index ddafc69..19e6794 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3857,3 +3859,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/combined-enum.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
index d3010e9..a374434 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -217,3 +219,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
index ff7165e..7ba1dd0 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -180,3 +182,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/empty-enum.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
index 7799363..918fc76 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -171,3 +173,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/identifiers.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/identifiers.json/default/QuickType.cs
index 124247d..165973c 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/identifiers.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/identifiers.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -235,3 +237,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
index a24c50b..811a6d6 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
index 56bce9b..7ea4134 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -157,3 +159,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/keywords.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/keywords.json/default/QuickType.cs
index eed1117..06ed7c6 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/keywords.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/keywords.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -3288,3 +3290,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
index ac85adf..0e0d31f 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -201,3 +203,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/list.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/list.json/default/QuickType.cs
index 7ed72f1..03ddc90 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/list.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/list.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/name-style.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/name-style.json/default/QuickType.cs
index d750485..117fd9f 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/name-style.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/name-style.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -188,3 +190,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
index 7b83265..62d8a41 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -1701,3 +1703,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/nested-objects.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
index bb21a75..64f70c2 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/no-classes.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/no-classes.json/default/QuickType.cs
index 0825eea..1e35046 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/no-classes.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/no-classes.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -157,3 +159,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
index e17d878..d0be444 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -680,3 +682,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/number-map.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/number-map.json/default/QuickType.cs
index cbfd10d..dfb389a 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/number-map.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/number-map.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/omit-empty.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
index 8c3ed0a..91cec83 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -174,3 +176,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/optional-union.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/optional-union.json/default/QuickType.cs
index 43dd967..0406436 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/optional-union.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/optional-union.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -210,3 +212,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
index 5f7612b..b0b7eef 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -246,3 +248,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/php-validation.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/php-validation.json/default/QuickType.cs
index c7457bd..d23cc66 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/php-validation.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/php-validation.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -180,3 +182,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/recursive.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/recursive.json/default/QuickType.cs
index f140e00..5dc073a 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/recursive.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/recursive.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -496,3 +498,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
index 70d43b3..d1cbf48 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -196,3 +198,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
index 8a8edd3..40821ae 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -222,3 +224,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/unions.json/dateonly-timeonly-converters-false--1db3f00f8963/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/unions.json/dateonly-timeonly-converters-false--1db3f00f8963/QuickType.cs
index 7763d9f..4fee0d0 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/unions.json/dateonly-timeonly-converters-false--1db3f00f8963/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/unions.json/dateonly-timeonly-converters-false--1db3f00f8963/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -246,3 +248,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/unions.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/unions.json/default/QuickType.cs
index 877d8eb..7ad74dc 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/unions.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/unions.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -289,3 +291,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/url.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/url.json/default/QuickType.cs
index d4409d3..75711ba 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/url.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/url.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/priority/uuids.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/priority/uuids.json/default/QuickType.cs
index f88b3fb..de5e42b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/priority/uuids.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/priority/uuids.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -184,3 +186,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
index c9456ba..6b3790b 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -180,3 +182,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/getting-started.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/getting-started.json/default/QuickType.cs
index c1ae477..fd8b6ba 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/getting-started.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/getting-started.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/github-events.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/github-events.json/default/QuickType.cs
index 9968382..6897e80 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/github-events.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/github-events.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -1185,3 +1187,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
index 8246c8a..96414c1 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -382,3 +384,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/null-safe.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/null-safe.json/default/QuickType.cs
index 0af7631..bc061f7 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/null-safe.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/null-safe.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -198,3 +200,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/pokedex.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/pokedex.json/default/QuickType.cs
index 18bbd5f..c8c5bd7 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/pokedex.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/pokedex.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -415,3 +417,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/reddit.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/reddit.json/default/QuickType.cs
index 3d65541..7279899 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/reddit.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/reddit.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -800,3 +802,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/simple-object.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/simple-object.json/default/QuickType.cs
index f33beea..b67e6cc 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/simple-object.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/simple-object.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/spotify-album.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
index b48a6eb..4c33a01 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -406,3 +408,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
index 9ff85ca..d125dc8 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -198,3 +200,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-SystemTextJson/test/inputs/json/samples/us-senators.json/default/QuickType.cs b/head/csharp-SystemTextJson/test/inputs/json/samples/us-senators.json/default/QuickType.cs
index 8763a46..a6ee8ba 100644
--- a/base/csharp-SystemTextJson/test/inputs/json/samples/us-senators.json/default/QuickType.cs
+++ b/head/csharp-SystemTextJson/test/inputs/json/samples/us-senators.json/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -799,3 +801,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/csharp-records/test/inputs/json/misc/00c36.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/00c36.json/default/QuickType.cs
index 32c8a8e..5d38f2c 100644
--- a/base/csharp-records/test/inputs/json/misc/00c36.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/00c36.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/00ec5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/00ec5.json/default/QuickType.cs
index 06138ed..b3be6f8 100644
--- a/base/csharp-records/test/inputs/json/misc/00ec5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/00ec5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/010b1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/010b1.json/default/QuickType.cs
index 80f8e48..b0cd214 100644
--- a/base/csharp-records/test/inputs/json/misc/010b1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/010b1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/016af.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/016af.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/016af.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/016af.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/033b1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/033b1.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/033b1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/033b1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/050b0.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/050b0.json/default/QuickType.cs
index 15fb205..8d36fdd 100644
--- a/base/csharp-records/test/inputs/json/misc/050b0.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/050b0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/06bee.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/06bee.json/default/QuickType.cs
index 2cbe568..9a3f7ae 100644
--- a/base/csharp-records/test/inputs/json/misc/06bee.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/06bee.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/07540.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/07540.json/default/QuickType.cs
index 6a34ef8..f0d6ab4 100644
--- a/base/csharp-records/test/inputs/json/misc/07540.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/07540.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/0779f.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/0779f.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/0779f.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/0779f.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/07c75.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/07c75.json/default/QuickType.cs
index 5fa12ff..d63cc84 100644
--- a/base/csharp-records/test/inputs/json/misc/07c75.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/07c75.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/09f54.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/09f54.json/default/QuickType.cs
index 64ace20..12cc4a5 100644
--- a/base/csharp-records/test/inputs/json/misc/09f54.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/09f54.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/0a358.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/0a358.json/default/QuickType.cs
index d92a7d4..01b4474 100644
--- a/base/csharp-records/test/inputs/json/misc/0a358.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/0a358.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/0a91a.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/0a91a.json/default/QuickType.cs
index 8a215fb..cf9495e 100644
--- a/base/csharp-records/test/inputs/json/misc/0a91a.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/0a91a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/0b91a.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/0b91a.json/default/QuickType.cs
index 02c29cc..3c3f673 100644
--- a/base/csharp-records/test/inputs/json/misc/0b91a.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/0b91a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/0cffa.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/0cffa.json/default/QuickType.cs
index a011396..354d64b 100644
--- a/base/csharp-records/test/inputs/json/misc/0cffa.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/0cffa.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/0e0c2.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
index 189b669..746a968 100644
--- a/base/csharp-records/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/0e0c2.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/0fecf.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/0fecf.json/default/QuickType.cs
index 3f9cc12..f5f4a3b 100644
--- a/base/csharp-records/test/inputs/json/misc/0fecf.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/0fecf.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/10be4.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/10be4.json/default/QuickType.cs
index 911779e..f9ce152 100644
--- a/base/csharp-records/test/inputs/json/misc/10be4.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/10be4.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/112b5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/112b5.json/default/QuickType.cs
index 543b9bd..87f485b 100644
--- a/base/csharp-records/test/inputs/json/misc/112b5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/112b5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/127a1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/127a1.json/default/QuickType.cs
index 5f05e90..33ecdf8 100644
--- a/base/csharp-records/test/inputs/json/misc/127a1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/127a1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/13d8d.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/13d8d.json/default/QuickType.cs
index be2df3e..fb410c8 100644
--- a/base/csharp-records/test/inputs/json/misc/13d8d.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/13d8d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/14d38.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/14d38.json/default/QuickType.cs
index d34e42f..093b0e7 100644
--- a/base/csharp-records/test/inputs/json/misc/14d38.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/14d38.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/167d6.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/167d6.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/167d6.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/167d6.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/16bc5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/16bc5.json/default/QuickType.cs
index 1069da3..3d74a47 100644
--- a/base/csharp-records/test/inputs/json/misc/16bc5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/16bc5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/176f1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/176f1.json/default/QuickType.cs
index b48ff5b..1a892f9 100644
--- a/base/csharp-records/test/inputs/json/misc/176f1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/176f1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/1a7f5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
index 80f8e48..b0cd214 100644
--- a/base/csharp-records/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/1a7f5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/1b28c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/1b28c.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/1b28c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/1b28c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/1b409.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/1b409.json/default/QuickType.cs
index 07aeee1..e8b30e6 100644
--- a/base/csharp-records/test/inputs/json/misc/1b409.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/1b409.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/2465e.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/2465e.json/default/QuickType.cs
index 8aa49e7..e43dcda 100644
--- a/base/csharp-records/test/inputs/json/misc/2465e.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/2465e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/24f52.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/24f52.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/24f52.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/24f52.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/262f0.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/262f0.json/default/QuickType.cs
index 5f528bc..d04e6b4 100644
--- a/base/csharp-records/test/inputs/json/misc/262f0.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/262f0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/26b49.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/26b49.json/default/QuickType.cs
index e27f98b..1dbd20b 100644
--- a/base/csharp-records/test/inputs/json/misc/26b49.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/26b49.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/26c9c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/26c9c.json/default/QuickType.cs
index 5dead51..8c9ccda 100644
--- a/base/csharp-records/test/inputs/json/misc/26c9c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/26c9c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/27332.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/27332.json/default/QuickType.cs
index a45b9db..2cc3fa7 100644
--- a/base/csharp-records/test/inputs/json/misc/27332.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/27332.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/29f47.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/29f47.json/default/QuickType.cs
index d13da03..1bb20fb 100644
--- a/base/csharp-records/test/inputs/json/misc/29f47.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/29f47.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/2d4e2.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
index 859e487..97dc247 100644
--- a/base/csharp-records/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/2d4e2.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/2df80.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/2df80.json/default/QuickType.cs
index 634e013..2de7387 100644
--- a/base/csharp-records/test/inputs/json/misc/2df80.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/2df80.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/31189.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/31189.json/default/QuickType.cs
index 728ad9c..7f28eff 100644
--- a/base/csharp-records/test/inputs/json/misc/31189.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/31189.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/32431.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/32431.json/default/QuickType.cs
index 115a77c..449b1b1 100644
--- a/base/csharp-records/test/inputs/json/misc/32431.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/32431.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/32d5c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/32d5c.json/default/QuickType.cs
index 3669f77..4bb037a 100644
--- a/base/csharp-records/test/inputs/json/misc/32d5c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/32d5c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/337ed.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/337ed.json/default/QuickType.cs
index 7152cf0..4c079a9 100644
--- a/base/csharp-records/test/inputs/json/misc/337ed.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/337ed.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/33d2e.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/33d2e.json/default/QuickType.cs
index 3077438..9f9ce50 100644
--- a/base/csharp-records/test/inputs/json/misc/33d2e.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/33d2e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/34702.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/34702.json/default/QuickType.cs
index b1854aa..6701920 100644
--- a/base/csharp-records/test/inputs/json/misc/34702.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/34702.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/3536b.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/3536b.json/default/QuickType.cs
index d6e6da4..862d604 100644
--- a/base/csharp-records/test/inputs/json/misc/3536b.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/3536b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/3659d.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/3659d.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/3659d.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/3659d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/36d5d.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/36d5d.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/36d5d.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/36d5d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/3a6b3.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/3a6b3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/3e9a3.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
index b48ff5b..1a892f9 100644
--- a/base/csharp-records/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/3e9a3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/3f1ce.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
index ea27352..4b25ba8 100644
--- a/base/csharp-records/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/3f1ce.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/421d4.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/421d4.json/default/QuickType.cs
index 54eed80..590f17f 100644
--- a/base/csharp-records/test/inputs/json/misc/421d4.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/421d4.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/437e7.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/437e7.json/default/QuickType.cs
index a517b22..46e7d13 100644
--- a/base/csharp-records/test/inputs/json/misc/437e7.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/437e7.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/43970.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/43970.json/default/QuickType.cs
index 5621fc5..3c68efe 100644
--- a/base/csharp-records/test/inputs/json/misc/43970.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/43970.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/43eaf.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/43eaf.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/43eaf.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/43eaf.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/458db.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/458db.json/default/QuickType.cs
index c54bd39..09adbf1 100644
--- a/base/csharp-records/test/inputs/json/misc/458db.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/458db.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/4961a.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/4961a.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/4961a.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/4961a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/4a0d7.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/4a0d7.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/4a455.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/4a455.json/default/QuickType.cs
index 0ba3a1b..d7dec6f 100644
--- a/base/csharp-records/test/inputs/json/misc/4a455.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/4a455.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/4c547.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/4c547.json/default/QuickType.cs
index 1069da3..3d74a47 100644
--- a/base/csharp-records/test/inputs/json/misc/4c547.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/4c547.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/4d6fb.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
index 2335a3f..deaa3d0 100644
--- a/base/csharp-records/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/4d6fb.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/4e336.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/4e336.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/4e336.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/4e336.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/54147.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/54147.json/default/QuickType.cs
index 44af130..95a1a2f 100644
--- a/base/csharp-records/test/inputs/json/misc/54147.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/54147.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/54d32.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/54d32.json/default/QuickType.cs
index 9a75b1a..e2a35f8 100644
--- a/base/csharp-records/test/inputs/json/misc/54d32.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/54d32.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/570ec.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/570ec.json/default/QuickType.cs
index 4c35ff9..85d541c 100644
--- a/base/csharp-records/test/inputs/json/misc/570ec.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/570ec.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/5dd0d.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/5dd0d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/5eae5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/5eae5.json/default/QuickType.cs
index 3453a9c..5664adc 100644
--- a/base/csharp-records/test/inputs/json/misc/5eae5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/5eae5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/5eb20.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/5eb20.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/5eb20.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/5eb20.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/5f3a1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/5f3a1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/5f7fe.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
index 2b4a4bf..1fe14d6 100644
--- a/base/csharp-records/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/5f7fe.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/617e8.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/617e8.json/default/QuickType.cs
index 558bc3c..9ebc2b7 100644
--- a/base/csharp-records/test/inputs/json/misc/617e8.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/617e8.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/61b66.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/61b66.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/61b66.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/61b66.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/6260a.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/6260a.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/6260a.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/6260a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/65dec.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/65dec.json/default/QuickType.cs
index f0d36d0..ca7af92 100644
--- a/base/csharp-records/test/inputs/json/misc/65dec.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/65dec.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/66121.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/66121.json/default/QuickType.cs
index a3d0117..21e244a 100644
--- a/base/csharp-records/test/inputs/json/misc/66121.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/66121.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/6617c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/6617c.json/default/QuickType.cs
index eb54964..6914c6e 100644
--- a/base/csharp-records/test/inputs/json/misc/6617c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/6617c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/67c03.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/67c03.json/default/QuickType.cs
index 2588707..7cc7cdb 100644
--- a/base/csharp-records/test/inputs/json/misc/67c03.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/67c03.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/68c30.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/68c30.json/default/QuickType.cs
index c6eebdb..339d7f1 100644
--- a/base/csharp-records/test/inputs/json/misc/68c30.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/68c30.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/6c155.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/6c155.json/default/QuickType.cs
index fdfd06d..8106bf3 100644
--- a/base/csharp-records/test/inputs/json/misc/6c155.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/6c155.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/6de06.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/6de06.json/default/QuickType.cs
index d4cd1ae..155c5d5 100644
--- a/base/csharp-records/test/inputs/json/misc/6de06.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/6de06.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/6dec6.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/6dec6.json/default/QuickType.cs
index 20ca744..81b0dd5 100644
--- a/base/csharp-records/test/inputs/json/misc/6dec6.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/6dec6.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/6eb00.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/6eb00.json/default/QuickType.cs
index 7338eea..fa3a1e0 100644
--- a/base/csharp-records/test/inputs/json/misc/6eb00.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/6eb00.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/70c77.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/70c77.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/70c77.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/70c77.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/734ad.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/734ad.json/default/QuickType.cs
index 2a79e53..51145ff 100644
--- a/base/csharp-records/test/inputs/json/misc/734ad.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/734ad.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/75912.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/75912.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/75912.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/75912.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/7681c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/7681c.json/default/QuickType.cs
index 5e21049..cf6dee2 100644
--- a/base/csharp-records/test/inputs/json/misc/7681c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/7681c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/76ae1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/76ae1.json/default/QuickType.cs
index a2a27df..73bd5ab 100644
--- a/base/csharp-records/test/inputs/json/misc/76ae1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/76ae1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/77392.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/77392.json/default/QuickType.cs
index 34e1c00..022024c 100644
--- a/base/csharp-records/test/inputs/json/misc/77392.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/77392.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/7d397.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/7d397.json/default/QuickType.cs
index 5ef45aa..25bdba3 100644
--- a/base/csharp-records/test/inputs/json/misc/7d397.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/7d397.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/7d722.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/7d722.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/7d722.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/7d722.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/7df41.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/7df41.json/default/QuickType.cs
index f310b55..c97e9a4 100644
--- a/base/csharp-records/test/inputs/json/misc/7df41.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/7df41.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/7dfa6.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/7dfa6.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/7eb30.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/7eb30.json/default/QuickType.cs
index 53682a8..29a345b 100644
--- a/base/csharp-records/test/inputs/json/misc/7eb30.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/7eb30.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/7f568.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/7f568.json/default/QuickType.cs
index 24fcd0a..a174ae8 100644
--- a/base/csharp-records/test/inputs/json/misc/7f568.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/7f568.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/7fbfb.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
index 7781692..e7c5ef4 100644
--- a/base/csharp-records/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/7fbfb.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/80aff.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/80aff.json/default/QuickType.cs
index 68c524d..4d91dbc 100644
--- a/base/csharp-records/test/inputs/json/misc/80aff.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/80aff.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/82509.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/82509.json/default/QuickType.cs
index af8986a..635ad95 100644
--- a/base/csharp-records/test/inputs/json/misc/82509.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/82509.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/8592b.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/8592b.json/default/QuickType.cs
index bee9e3b..6aeb636 100644
--- a/base/csharp-records/test/inputs/json/misc/8592b.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/8592b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/88130.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/88130.json/default/QuickType.cs
index 1069da3..3d74a47 100644
--- a/base/csharp-records/test/inputs/json/misc/88130.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/88130.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/8a62c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/8a62c.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/8a62c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/8a62c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/908db.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/908db.json/default/QuickType.cs
index cff1428..e6b25f8 100644
--- a/base/csharp-records/test/inputs/json/misc/908db.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/908db.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/9617f.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/9617f.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/9617f.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/9617f.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/96f7c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/96f7c.json/default/QuickType.cs
index 75b339f..c7950f5 100644
--- a/base/csharp-records/test/inputs/json/misc/96f7c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/96f7c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/9847b.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/9847b.json/default/QuickType.cs
index 296e3a2..67efb32 100644
--- a/base/csharp-records/test/inputs/json/misc/9847b.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/9847b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/9929c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/9929c.json/default/QuickType.cs
index 1069da3..3d74a47 100644
--- a/base/csharp-records/test/inputs/json/misc/9929c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/9929c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/996bd.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/996bd.json/default/QuickType.cs
index 63fc502..340b9f2 100644
--- a/base/csharp-records/test/inputs/json/misc/996bd.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/996bd.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/9a503.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/9a503.json/default/QuickType.cs
index 35c95e0..e9b0034 100644
--- a/base/csharp-records/test/inputs/json/misc/9a503.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/9a503.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/9ac3b.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
index 6b37d31..9e50d6e 100644
--- a/base/csharp-records/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/9ac3b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/9eed5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/9eed5.json/default/QuickType.cs
index 0fea188..c0192c5 100644
--- a/base/csharp-records/test/inputs/json/misc/9eed5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/9eed5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/a0496.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/a0496.json/default/QuickType.cs
index 367529e..7cd4eeb 100644
--- a/base/csharp-records/test/inputs/json/misc/a0496.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/a0496.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/a1eca.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/a1eca.json/default/QuickType.cs
index 1069da3..3d74a47 100644
--- a/base/csharp-records/test/inputs/json/misc/a1eca.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/a1eca.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/a3d8c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
index 4f4c525..4361131 100644
--- a/base/csharp-records/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/a3d8c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/a45b0.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/a45b0.json/default/QuickType.cs
index 80f8e48..b0cd214 100644
--- a/base/csharp-records/test/inputs/json/misc/a45b0.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/a45b0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/a71df.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/a71df.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/a71df.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/a71df.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/a9691.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/a9691.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/a9691.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/a9691.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/ab0d1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
index 80f8e48..b0cd214 100644
--- a/base/csharp-records/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/ab0d1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/abb4b.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/abb4b.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/abb4b.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/abb4b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/ac944.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/ac944.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/ac944.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/ac944.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/ad8be.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/ad8be.json/default/QuickType.cs
index 911779e..f9ce152 100644
--- a/base/csharp-records/test/inputs/json/misc/ad8be.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/ad8be.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/ae7f0.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
index eac9587..fe24b89 100644
--- a/base/csharp-records/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/ae7f0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/ae9ca.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
index 33468b6..1f55ed8 100644
--- a/base/csharp-records/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/ae9ca.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/af2d1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/af2d1.json/default/QuickType.cs
index 7ad49a7..50e366f 100644
--- a/base/csharp-records/test/inputs/json/misc/af2d1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/af2d1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/b4865.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/b4865.json/default/QuickType.cs
index ff6eb29..c4e40de 100644
--- a/base/csharp-records/test/inputs/json/misc/b4865.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/b4865.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/b6f2c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/b6f2c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/b6fe5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
index 46ee56d..8e913d7 100644
--- a/base/csharp-records/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/b6fe5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/b9f64.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/b9f64.json/default/QuickType.cs
index c6b99f9..c0a0886 100644
--- a/base/csharp-records/test/inputs/json/misc/b9f64.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/b9f64.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/bb1ec.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/bb1ec.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/be234.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/be234.json/default/QuickType.cs
index aa22b2d..782bd00 100644
--- a/base/csharp-records/test/inputs/json/misc/be234.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/be234.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/c0356.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/c0356.json/default/QuickType.cs
index 256781c..af974d3 100644
--- a/base/csharp-records/test/inputs/json/misc/c0356.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/c0356.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/c0a3a.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/c0a3a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/c3303.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/c3303.json/default/QuickType.cs
index 27d8540..8f0f23a 100644
--- a/base/csharp-records/test/inputs/json/misc/c3303.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/c3303.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/c6cfd.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
index 90881da..54fdba3 100644
--- a/base/csharp-records/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/c6cfd.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/c8c7e.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
index 561cc2b..3a02cde 100644
--- a/base/csharp-records/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/c8c7e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/cb0cc.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
index 51e4e78..20c95df 100644
--- a/base/csharp-records/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/cb0cc.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/cb81e.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/cb81e.json/default/QuickType.cs
index 98c915a..f2f9964 100644
--- a/base/csharp-records/test/inputs/json/misc/cb81e.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/cb81e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/ccd18.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/ccd18.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/ccd18.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/ccd18.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/cd238.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/cd238.json/default/QuickType.cs
index 36fa558..205e0a7 100644
--- a/base/csharp-records/test/inputs/json/misc/cd238.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/cd238.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/cd463.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/cd463.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/cd463.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/cd463.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/cda6c.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/cda6c.json/default/QuickType.cs
index 0bc5b9e..c7af446 100644
--- a/base/csharp-records/test/inputs/json/misc/cda6c.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/cda6c.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/cf0d8.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
index 1069da3..3d74a47 100644
--- a/base/csharp-records/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/cf0d8.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/cfbce.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/cfbce.json/default/QuickType.cs
index aeacf3c..a7c4aa0 100644
--- a/base/csharp-records/test/inputs/json/misc/cfbce.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/cfbce.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/d0908.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/d0908.json/default/QuickType.cs
index 19213a0..32805ac 100644
--- a/base/csharp-records/test/inputs/json/misc/d0908.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/d0908.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/d23d5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/d23d5.json/default/QuickType.cs
index 379dc55..57ecf33 100644
--- a/base/csharp-records/test/inputs/json/misc/d23d5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/d23d5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/dbfb3.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
index 808828e..967e5a0 100644
--- a/base/csharp-records/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/dbfb3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/dc44f.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/dc44f.json/default/QuickType.cs
index 2b7bd44..e21a0da 100644
--- a/base/csharp-records/test/inputs/json/misc/dc44f.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/dc44f.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/dd1ce.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
index 2b7bd44..e21a0da 100644
--- a/base/csharp-records/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/dd1ce.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/dec3a.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/dec3a.json/default/QuickType.cs
index 72591e9..9f850d4 100644
--- a/base/csharp-records/test/inputs/json/misc/dec3a.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/dec3a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/df957.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/df957.json/default/QuickType.cs
index 1069da3..3d74a47 100644
--- a/base/csharp-records/test/inputs/json/misc/df957.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/df957.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/e0ac7.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
index 8d42d1c..f83fe56 100644
--- a/base/csharp-records/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/e0ac7.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/e2915.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/e2915.json/default/QuickType.cs
index ac8b50b..a2a8abd 100644
--- a/base/csharp-records/test/inputs/json/misc/e2915.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/e2915.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/e2a58.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/e2a58.json/default/QuickType.cs
index 64cf691..88446c0 100644
--- a/base/csharp-records/test/inputs/json/misc/e2a58.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/e2a58.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/e324e.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/e324e.json/default/QuickType.cs
index ed84b13..e1b2934 100644
--- a/base/csharp-records/test/inputs/json/misc/e324e.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/e324e.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/e53b5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/e53b5.json/default/QuickType.cs
index ad1e161..c754fe4 100644
--- a/base/csharp-records/test/inputs/json/misc/e53b5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/e53b5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/e64a0.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/e64a0.json/default/QuickType.cs
index 543b9bd..87f485b 100644
--- a/base/csharp-records/test/inputs/json/misc/e64a0.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/e64a0.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/e8a0b.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
index 80f8e48..b0cd214 100644
--- a/base/csharp-records/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/e8a0b.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/e8b04.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/e8b04.json/default/QuickType.cs
index 2197c10..e4d4ed5 100644
--- a/base/csharp-records/test/inputs/json/misc/e8b04.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/e8b04.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/ed095.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/ed095.json/default/QuickType.cs
index 4c88ec2..efeead0 100644
--- a/base/csharp-records/test/inputs/json/misc/ed095.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/ed095.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/f22f5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/f22f5.json/default/QuickType.cs
index 7ec7455..0a5867b 100644
--- a/base/csharp-records/test/inputs/json/misc/f22f5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/f22f5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/f3139.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/f3139.json/default/QuickType.cs
index 296e3a2..67efb32 100644
--- a/base/csharp-records/test/inputs/json/misc/f3139.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/f3139.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/f3edf.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/f3edf.json/default/QuickType.cs
index 80f8e48..b0cd214 100644
--- a/base/csharp-records/test/inputs/json/misc/f3edf.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/f3edf.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/f466a.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/f466a.json/default/QuickType.cs
index 80f8e48..b0cd214 100644
--- a/base/csharp-records/test/inputs/json/misc/f466a.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/f466a.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/f6a65.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/f6a65.json/default/QuickType.cs
index f73da11..bd7cd8e 100644
--- a/base/csharp-records/test/inputs/json/misc/f6a65.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/f6a65.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/f74d5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/f74d5.json/default/QuickType.cs
index d480056..e2df738 100644
--- a/base/csharp-records/test/inputs/json/misc/f74d5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/f74d5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/f82d9.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/f82d9.json/default/QuickType.cs
index 8b2dfdf..16c5bcf 100644
--- a/base/csharp-records/test/inputs/json/misc/f82d9.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/f82d9.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/f974d.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/f974d.json/default/QuickType.cs
index 20a560e..3ee7be1 100644
--- a/base/csharp-records/test/inputs/json/misc/f974d.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/f974d.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/faff5.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/faff5.json/default/QuickType.cs
index 24ff2ee..3de346b 100644
--- a/base/csharp-records/test/inputs/json/misc/faff5.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/faff5.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/fcca3.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/fcca3.json/default/QuickType.cs
index 3dfafa1..618b6ba 100644
--- a/base/csharp-records/test/inputs/json/misc/fcca3.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/fcca3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/misc/fd329.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/misc/fd329.json/default/QuickType.cs
index 64ace20..12cc4a5 100644
--- a/base/csharp-records/test/inputs/json/misc/fd329.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/misc/fd329.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/blns-object.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/blns-object.json/default/QuickType.cs
index b929b10..42cb34f 100644
--- a/base/csharp-records/test/inputs/json/priority/blns-object.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/blns-object.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug2037.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug2037.json/default/QuickType.cs
index f08745a..24f77ec 100644
--- a/base/csharp-records/test/inputs/json/priority/bug2037.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug2037.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug2521.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug2521.json/default/QuickType.cs
index 064368b..a6b51e8 100644
--- a/base/csharp-records/test/inputs/json/priority/bug2521.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug2521.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug2590.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug2590.json/default/QuickType.cs
index 4b6b1f6..acb602a 100644
--- a/base/csharp-records/test/inputs/json/priority/bug2590.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug2590.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug2663.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug2663.json/default/QuickType.cs
index 989f484..985ccc9 100644
--- a/base/csharp-records/test/inputs/json/priority/bug2663.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug2663.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug2793.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug2793.json/default/QuickType.cs
index b669f62..cd419fd 100644
--- a/base/csharp-records/test/inputs/json/priority/bug2793.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug2793.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug427.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug427.json/default/QuickType.cs
index dc50892..2e1d573 100644
--- a/base/csharp-records/test/inputs/json/priority/bug427.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug427.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug790.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug790.json/default/QuickType.cs
index d8ddb30..7b25454 100644
--- a/base/csharp-records/test/inputs/json/priority/bug790.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug790.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug855-short.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
index c5277e0..2435a93 100644
--- a/base/csharp-records/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug855-short.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/bug863.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/bug863.json/default/QuickType.cs
index e647365..6e09a00 100644
--- a/base/csharp-records/test/inputs/json/priority/bug863.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/bug863.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
index 6edd696..83a1012 100644
--- a/base/csharp-records/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/coin-pairs.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index a45fb04..f8920bf 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations1.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
index 24ab465..97c7bf2 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations1.json/array-type-list--e30a0413f432/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index 18f83e1..c3841e4 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations1.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index 45c31a6..7d520d1 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations1.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations1.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations1.json/default/QuickType.cs
index 9ceb9a1..9daa8c4 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations1.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations1.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 62979de..fd4332f 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations1.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
index 23eb11c..7e1decf 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations1.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index 5964520..eef52cd 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations2.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
index 8ff522a..2386b4e 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations2.json/array-type-list--e30a0413f432/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index c01c593..a037aa1 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations2.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index 3b34c42..32c1f18 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations2.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations2.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations2.json/default/QuickType.cs
index 21db15d..913fb8a 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations2.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations2.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 995d35a..7555529 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations2.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
index 000a2d0..b2de756 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations2.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index b9e42e5..6308745 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations3.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
index 0a12b59..a84be05 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations3.json/array-type-list--e30a0413f432/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index cd9b9c5..7e63625 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations3.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index ee31b56..ff51751 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations3.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations3.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations3.json/default/QuickType.cs
index f1a54c6..65ee840 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations3.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations3.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 1dbca43..4f1afa3 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations3.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
index 1ab48fc..ebad073 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations3.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
index 871d287..e391f9e 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations4.json/any-type-dynamic--c1ed06bd14d8/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
index bfbd2e6..40947f1 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations4.json/array-type-list--e30a0413f432/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
index b4948cb..b9b4ee7 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations4.json/csharp-version-5--b2bd4d4221d9/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
index b758dd4..f83e5b2 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations4.json/csharp-version-6--6a3b58bb4100/QuickType.cs
@@ -10,6 +10,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations4.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations4.json/default/QuickType.cs
index 262bef9..791c94d 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations4.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations4.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
index 7ca24a8..b36f86a 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations4.json/density-dense--3bfb4c22cfd0/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
index 12919f3..fa13f0f 100644
--- a/base/csharp-records/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combinations4.json/number-type-decimal--20a123601b5a/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/combined-enum.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
index 6551710..0449f11 100644
--- a/base/csharp-records/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/combined-enum.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
index 5c49f05..1125da7 100644
--- a/base/csharp-records/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/direct-recursive.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/empty-enum.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
index 30bbb97..bd64437 100644
--- a/base/csharp-records/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/empty-enum.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/identifiers.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/identifiers.json/default/QuickType.cs
index 6c1e18b..663a003 100644
--- a/base/csharp-records/test/inputs/json/priority/identifiers.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/identifiers.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
index 1ffcaf4..bc71c77 100644
--- a/base/csharp-records/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/issue2680-object-array.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
index 2dbe3b9..51d7e65 100644
--- a/base/csharp-records/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/issue2680-scalar-array.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/keywords.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/keywords.json/default/QuickType.cs
index 65c63fd..ca48a74 100644
--- a/base/csharp-records/test/inputs/json/priority/keywords.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/keywords.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
index 25c2750..e64d7f1 100644
--- a/base/csharp-records/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/kotlin-enum-class-case-collision.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/list.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/list.json/default/QuickType.cs
index a24a8bc..a4beb72 100644
--- a/base/csharp-records/test/inputs/json/priority/list.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/list.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/name-style.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/name-style.json/default/QuickType.cs
index 7dcd97b..8ba05fc 100644
--- a/base/csharp-records/test/inputs/json/priority/name-style.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/name-style.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
index 442db49..d04d695 100644
--- a/base/csharp-records/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/nbl-stats.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/nested-objects.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
index 7f0b99d..aff71c0 100644
--- a/base/csharp-records/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/nested-objects.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/no-classes.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/no-classes.json/default/QuickType.cs
index e20dc09..69877f7 100644
--- a/base/csharp-records/test/inputs/json/priority/no-classes.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/no-classes.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
index 59d8494..9d6f1f6 100644
--- a/base/csharp-records/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/nst-test-suite.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/number-map.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/number-map.json/default/QuickType.cs
index c5c49c7..3f2c90b 100644
--- a/base/csharp-records/test/inputs/json/priority/number-map.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/number-map.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/omit-empty.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
index e6ed632..6feebf2 100644
--- a/base/csharp-records/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/omit-empty.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/optional-union.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/optional-union.json/default/QuickType.cs
index 648686c..5ff39ce 100644
--- a/base/csharp-records/test/inputs/json/priority/optional-union.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/optional-union.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
index 5597678..53b79eb 100644
--- a/base/csharp-records/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/php-mixed-union.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/php-validation.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/php-validation.json/default/QuickType.cs
index 42c5d23..e95cd5d 100644
--- a/base/csharp-records/test/inputs/json/priority/php-validation.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/php-validation.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/recursive.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/recursive.json/default/QuickType.cs
index 99e9e31..4079c0f 100644
--- a/base/csharp-records/test/inputs/json/priority/recursive.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/recursive.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
index b95446b..345889e 100644
--- a/base/csharp-records/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/simple-identifiers.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
index ff59b59..ee0c1e7 100644
--- a/base/csharp-records/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/union-constructor-clash.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/unions.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/unions.json/default/QuickType.cs
index 46ea23b..b46c456 100644
--- a/base/csharp-records/test/inputs/json/priority/unions.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/unions.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/url.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/url.json/default/QuickType.cs
index c9987c6..ceda2cb 100644
--- a/base/csharp-records/test/inputs/json/priority/url.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/url.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/priority/uuids.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/priority/uuids.json/default/QuickType.cs
index 66c7467..2d31275 100644
--- a/base/csharp-records/test/inputs/json/priority/uuids.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/priority/uuids.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
index 20a560e..3ee7be1 100644
--- a/base/csharp-records/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/bitcoin-block.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/getting-started.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/getting-started.json/default/QuickType.cs
index 81ff6a0..3039801 100644
--- a/base/csharp-records/test/inputs/json/samples/getting-started.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/getting-started.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/github-events.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/github-events.json/default/QuickType.cs
index 67fc4b8..2c0bfd8 100644
--- a/base/csharp-records/test/inputs/json/samples/github-events.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/github-events.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
index ba454fd..88e7fe3 100644
--- a/base/csharp-records/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/kitchen-sink.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/null-safe.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/null-safe.json/default/QuickType.cs
index b208f7e..194f6ec 100644
--- a/base/csharp-records/test/inputs/json/samples/null-safe.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/null-safe.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/pokedex.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/pokedex.json/default/QuickType.cs
index 672bd43..5ed6bd7 100644
--- a/base/csharp-records/test/inputs/json/samples/pokedex.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/pokedex.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/reddit.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/reddit.json/default/QuickType.cs
index f4eed5a..828049e 100644
--- a/base/csharp-records/test/inputs/json/samples/reddit.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/reddit.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/simple-object.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/simple-object.json/default/QuickType.cs
index 6d0605a..de80e7c 100644
--- a/base/csharp-records/test/inputs/json/samples/simple-object.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/simple-object.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/spotify-album.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
index f587773..f2593fc 100644
--- a/base/csharp-records/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/spotify-album.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
index 64ace20..12cc4a5 100644
--- a/base/csharp-records/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/us-avg-temperatures.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/csharp-records/test/inputs/json/samples/us-senators.json/default/QuickType.cs b/head/csharp-records/test/inputs/json/samples/us-senators.json/default/QuickType.cs
index 007ed63..6356a9b 100644
--- a/base/csharp-records/test/inputs/json/samples/us-senators.json/default/QuickType.cs
+++ b/head/csharp-records/test/inputs/json/samples/us-senators.json/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github1.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github1.graphql/default/QuickType.cs
index abcb029..75243c1 100644
--- a/base/graphql-csharp/test/inputs/graphql/github1.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github1.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github2.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github2.graphql/default/QuickType.cs
index de5ed28..16b0950 100644
--- a/base/graphql-csharp/test/inputs/graphql/github2.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github2.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github3.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github3.graphql/default/QuickType.cs
index d7fc366..57fc255 100644
--- a/base/graphql-csharp/test/inputs/graphql/github3.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github3.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github4.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github4.graphql/default/QuickType.cs
index 62edb14..ef1d15b 100644
--- a/base/graphql-csharp/test/inputs/graphql/github4.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github4.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github5.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github5.graphql/default/QuickType.cs
index e134b54..f9495d0 100644
--- a/base/graphql-csharp/test/inputs/graphql/github5.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github5.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github6.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github6.graphql/default/QuickType.cs
index 749fd37..e2d893d 100644
--- a/base/graphql-csharp/test/inputs/graphql/github6.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github6.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github7.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github7.graphql/default/QuickType.cs
index ef414db..979118b 100644
--- a/base/graphql-csharp/test/inputs/graphql/github7.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github7.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github8.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github8.graphql/default/QuickType.cs
index 1793f83..34542e8 100644
--- a/base/graphql-csharp/test/inputs/graphql/github8.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github8.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/graphql-csharp/test/inputs/graphql/github9.graphql/default/QuickType.cs b/head/graphql-csharp/test/inputs/graphql/github9.graphql/default/QuickType.cs
index 6433940..53645fb 100644
--- a/base/graphql-csharp/test/inputs/graphql/github9.graphql/default/QuickType.cs
+++ b/head/graphql-csharp/test/inputs/graphql/github9.graphql/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/head/schema-csharp/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs
new file mode 100644
index 0000000..57d0470
--- /dev/null
+++ b/head/schema-csharp/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs
@@ -0,0 +1,91 @@
+// <auto-generated />
+//
+// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
+//
+//    using QuickType;
+//
+//    var topLevel = TopLevel.FromJson(jsonString);
+#nullable enable
+#pragma warning disable CS8618
+#pragma warning disable CS8601
+#pragma warning disable CS8602
+#pragma warning disable CS8603
+#pragma warning disable CS8604
+#pragma warning disable CS8625
+#pragma warning disable CS8765
+
+namespace QuickType
+{
+    using System;
+    using System.Collections.Generic;
+    using System.Linq;
+
+    using System.Globalization;
+    using Newtonsoft.Json;
+    using Newtonsoft.Json.Converters;
+
+    public partial class TopLevel
+    {
+        [JsonProperty("value", Required = Required.Always)]
+        [JsonConverter(typeof(MinMaxLengthCheckConverter))]
+        public string Value { get; set; }
+    }
+
+    public partial class TopLevel
+    {
+        public static TopLevel FromJson(string json) => JsonConvert.DeserializeObject<TopLevel>(json, QuickType.Converter.Settings);
+    }
+
+    public static partial class Serialize
+    {
+        public static string ToJson(this TopLevel self) => JsonConvert.SerializeObject(self, QuickType.Converter.Settings);
+    }
+
+    internal static partial class Converter
+    {
+        public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
+        {
+            MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
+            DateParseHandling = DateParseHandling.None,
+            Converters =
+            {
+                new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
+            },
+        };
+    }
+
+    internal class MinMaxLengthCheckConverter : JsonConverter
+    {
+        public override bool CanConvert(Type t) => t == typeof(string);
+
+        public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
+        {
+            var value = serializer.Deserialize<string>(reader);
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 2)
+            {
+                return value;
+            }
+            throw new Exception("Cannot unmarshal type string");
+        }
+
+        public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
+        {
+            var value = (string)untypedValue;
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 2)
+            {
+                serializer.Serialize(writer, value);
+                return;
+            }
+            throw new Exception("Cannot marshal type string");
+        }
+
+        public static readonly MinMaxLengthCheckConverter Singleton = new MinMaxLengthCheckConverter();
+    }
+}
+#pragma warning restore CS8618
+#pragma warning restore CS8601
+#pragma warning restore CS8602
+#pragma warning restore CS8603
+#pragma warning restore CS8604
+#pragma warning restore CS8625
+#pragma warning restore CS8765
diff --git a/base/schema-csharp/test/inputs/schema/accessors.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/accessors.schema/default/QuickType.cs
index 5052e1d..bea3c1f 100644
--- a/base/schema-csharp/test/inputs/schema/accessors.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/accessors.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
index 2446b5d..b122142 100644
--- a/base/schema-csharp/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/any.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/any.schema/default/QuickType.cs
index 68f37e3..5300b95 100644
--- a/base/schema-csharp/test/inputs/schema/any.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/any.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/bool-string.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/bool-string.schema/default/QuickType.cs
index b488fe6..d7d022f 100644
--- a/base/schema-csharp/test/inputs/schema/bool-string.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/bool-string.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
index 4d9f352..898205f 100644
--- a/base/schema-csharp/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/camelCase.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/camelCase.schema/default/QuickType.cs
index 5286f40..4ba23ff 100644
--- a/base/schema-csharp/test/inputs/schema/camelCase.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/camelCase.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/class-map-union.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/class-map-union.schema/default/QuickType.cs
index a4722e4..d51aa69 100644
--- a/base/schema-csharp/test/inputs/schema/class-map-union.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/class-map-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/class-with-additional.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
index 08457d7..1d76bd9 100644
--- a/base/schema-csharp/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
index 88b5767..98c0302 100644
--- a/base/schema-csharp/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
index 624ea38..31e449f 100644
--- a/base/schema-csharp/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
index e20c442..30a4fff 100644
--- a/base/schema-csharp/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/comment-injection.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/comment-injection.schema/default/QuickType.cs
index a5ce04a..2c11704 100644
--- a/base/schema-csharp/test/inputs/schema/comment-injection.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/comment-injection.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/const-non-string.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/const-non-string.schema/default/QuickType.cs
index 420129d..f77f2a1 100644
--- a/base/schema-csharp/test/inputs/schema/const-non-string.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/const-non-string.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/constructor.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/constructor.schema/default/QuickType.cs
index f6cda88..65860bd 100644
--- a/base/schema-csharp/test/inputs/schema/constructor.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/constructor.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/cut-enum.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/cut-enum.schema/default/QuickType.cs
index 99df2c9..c40b904 100644
--- a/base/schema-csharp/test/inputs/schema/cut-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/cut-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
index 2598f73..6dd9fbe 100644
--- a/base/schema-csharp/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/date-time.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/date-time.schema/default/QuickType.cs
index 04196fd..5c85f95 100644
--- a/base/schema-csharp/test/inputs/schema/date-time.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/date-time.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/default-value.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/default-value.schema/default/QuickType.cs
index 922dbb6..108bd9a 100644
--- a/base/schema-csharp/test/inputs/schema/default-value.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/default-value.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
index 9a87d18..e9628e8 100644
--- a/base/schema-csharp/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/description.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/description.schema/default/QuickType.cs
index b578b8f..21ed37a 100644
--- a/base/schema-csharp/test/inputs/schema/description.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/description.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/direct-union.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/direct-union.schema/default/QuickType.cs
index 1ee8825..fcecf68 100644
--- a/base/schema-csharp/test/inputs/schema/direct-union.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/direct-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/empty-object.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/empty-object.schema/default/QuickType.cs
index 20e07a2..85cfe53 100644
--- a/base/schema-csharp/test/inputs/schema/empty-object.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/empty-object.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/enum-large.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/enum-large.schema/default/QuickType.cs
index 135628b..3ea4e7d 100644
--- a/base/schema-csharp/test/inputs/schema/enum-large.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/enum-large.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/enum-with-null.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
index 9bde3eb..723eacf 100644
--- a/base/schema-csharp/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/enum-with-values.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
index 6e8b19f..6bc151c 100644
--- a/base/schema-csharp/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/enum.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/enum.schema/default/QuickType.cs
index 0913039..4ddb154 100644
--- a/base/schema-csharp/test/inputs/schema/enum.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
index 859c7cd..cf9103f 100644
--- a/base/schema-csharp/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
index db2b51d..a366beb 100644
--- a/base/schema-csharp/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/id-no-address.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/id-no-address.schema/default/QuickType.cs
index ce08878..33053a8 100644
--- a/base/schema-csharp/test/inputs/schema/id-no-address.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/id-no-address.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/id-root.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/id-root.schema/default/QuickType.cs
index 4dda50f..8bf9dfa 100644
--- a/base/schema-csharp/test/inputs/schema/id-root.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/id-root.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
index f9324ef..81489a6 100644
--- a/base/schema-csharp/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
index 1a7ab72..9d50470 100644
--- a/base/schema-csharp/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
index fad43f4..68e5589 100644
--- a/base/schema-csharp/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
index 53c7d45..9917ae5 100644
--- a/base/schema-csharp/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/integer-before-number.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
index 3daca78..6b84a2d 100644
--- a/base/schema-csharp/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/integer-float-union.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
index 1489e5c..65a07ae 100644
--- a/base/schema-csharp/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/integer-string.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/integer-string.schema/default/QuickType.cs
index 8675e0e..963c96f 100644
--- a/base/schema-csharp/test/inputs/schema/integer-string.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/integer-string.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/integer-type.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/integer-type.schema/default/QuickType.cs
index 1a28d77..a9e9fc5 100644
--- a/base/schema-csharp/test/inputs/schema/integer-type.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/integer-type.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/intersection-nested.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
index a1a8f76..3550e84 100644
--- a/base/schema-csharp/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/intersection.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/intersection.schema/default/QuickType.cs
index 2a2f673..dc95645 100644
--- a/base/schema-csharp/test/inputs/schema/intersection.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/intersection.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
index 2dbe3b9..51d7e65 100644
--- a/base/schema-csharp/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/keyword-enum.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
index d2d1880..abd4811 100644
--- a/base/schema-csharp/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/keyword-unions.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
index ae377c5..5b7f94d 100644
--- a/base/schema-csharp/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/light.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/light.schema/default/QuickType.cs
index 741ea32..831e7b6 100644
--- a/base/schema-csharp/test/inputs/schema/light.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/light.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/list.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/list.schema/default/QuickType.cs
index 9954593..0408787 100644
--- a/base/schema-csharp/test/inputs/schema/list.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/list.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/min-max-items.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/min-max-items.schema/default/QuickType.cs
index f268227..a003366 100644
--- a/base/schema-csharp/test/inputs/schema/min-max-items.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/min-max-items.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/minmax-integer.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
index 6d110ab..d90b40a 100644
--- a/base/schema-csharp/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/minmax.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/minmax.schema/default/QuickType.cs
index 71fa273..4619117 100644
--- a/base/schema-csharp/test/inputs/schema/minmax.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/minmax.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/minmaxlength.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
index c99cdcf..4d68b99 100644
--- a/base/schema-csharp/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -104,7 +105,7 @@ namespace QuickType
                 case JsonToken.String:
                 case JsonToken.Date:
                     var stringValue = serializer.Deserialize<string>(reader);
-                    if (stringValue.Length >= 3 && stringValue.Length <= 5)
+                    if (stringValue.Count(c => !char.IsLowSurrogate(c)) >= 3 && stringValue.Count(c => !char.IsLowSurrogate(c)) <= 5)
                     {
                         return new InUnion { String = stringValue };
                     }
@@ -123,7 +124,7 @@ namespace QuickType
             }
             if (value.String != null)
             {
-                if (value.String.Length >= 3 && value.String.Length <= 5)
+                if (value.String.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.String.Count(c => !char.IsLowSurrogate(c)) <= 5)
                 {
                     serializer.Serialize(writer, value.String);
                     return;
@@ -142,7 +143,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 3 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -152,7 +153,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 3 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 serializer.Serialize(writer, value);
                 return;
@@ -170,7 +171,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 4 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 4 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -180,7 +181,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 4 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 4 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 serializer.Serialize(writer, value);
                 return;
@@ -198,7 +199,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -208,7 +209,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 serializer.Serialize(writer, value);
                 return;
@@ -226,7 +227,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 3)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3)
             {
                 return value;
             }
@@ -236,7 +237,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 3)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3)
             {
                 serializer.Serialize(writer, value);
                 return;
@@ -254,7 +255,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 3 && value.Length <= 6)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 6)
             {
                 return value;
             }
@@ -264,7 +265,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 3 && value.Length <= 6)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 6)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
index 934492e..208ee2f 100644
--- a/base/schema-csharp/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
index 65206dc..89245f2 100644
--- a/base/schema-csharp/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
index 0ca3ed8..44e2dd8 100644
--- a/base/schema-csharp/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
index e12b930..d6afcc8 100644
--- a/base/schema-csharp/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
index 5a1a51c..3266c1b 100644
--- a/base/schema-csharp/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/object-type-required.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/object-type-required.schema/default/QuickType.cs
index ed4eafc..6867650 100644
--- a/base/schema-csharp/test/inputs/schema/object-type-required.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/object-type-required.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/optional-any.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/optional-any.schema/default/QuickType.cs
index ea630ef..27edc2e 100644
--- a/base/schema-csharp/test/inputs/schema/optional-any.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/optional-any.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
index 94dff2e..b6ce98a 100644
--- a/base/schema-csharp/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -89,7 +90,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 2 && value.Length <= 16)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 16)
             {
                 return value;
             }
@@ -99,7 +100,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 2 && value.Length <= 16)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 16)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp/test/inputs/schema/optional-constraints.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
index e5a334f..119cf2f 100644
--- a/base/schema-csharp/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -107,7 +108,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 3 && value.Length <= 10)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 10)
             {
                 return value;
             }
@@ -117,7 +118,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 3 && value.Length <= 10)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 10)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp/test/inputs/schema/optional-date-time.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
index 6699e19..84f8b7a 100644
--- a/base/schema-csharp/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/optional-enum.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/optional-enum.schema/default/QuickType.cs
index f7526c8..920619a 100644
--- a/base/schema-csharp/test/inputs/schema/optional-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/optional-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/pattern.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/pattern.schema/default/QuickType.cs
index 2d4c9f3..48a49f2 100644
--- a/base/schema-csharp/test/inputs/schema/pattern.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/pattern.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/postman-collection.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/postman-collection.schema/default/QuickType.cs
index f912324..3ba08de 100644
--- a/base/schema-csharp/test/inputs/schema/postman-collection.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/postman-collection.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/prefix-items.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/prefix-items.schema/default/QuickType.cs
index cd7511a..a2f1973 100644
--- a/base/schema-csharp/test/inputs/schema/prefix-items.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/prefix-items.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
index 850ca3d..ce4ad1c 100644
--- a/base/schema-csharp/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/ref-id-files.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
index 99df2c9..c40b904 100644
--- a/base/schema-csharp/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/ref-remote.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/ref-remote.schema/default/QuickType.cs
index 9954593..0408787 100644
--- a/base/schema-csharp/test/inputs/schema/ref-remote.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/ref-remote.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/renaming-bug.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
index 5b3b59b..7489a8d 100644
--- a/base/schema-csharp/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -199,7 +200,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 1)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 1)
             {
                 return value;
             }
@@ -209,7 +210,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 1)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 1)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp/test/inputs/schema/required-draft3.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/required-draft3.schema/default/QuickType.cs
index 95301eb..7b5b87f 100644
--- a/base/schema-csharp/test/inputs/schema/required-draft3.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/required-draft3.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/required-non-properties.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
index 1cf8740..700be10 100644
--- a/base/schema-csharp/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/required.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/required.schema/default/QuickType.cs
index 95301eb..7b5b87f 100644
--- a/base/schema-csharp/test/inputs/schema/required.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/required.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
index 76e2bac..1227929 100644
--- a/base/schema-csharp/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/schema-constraints.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
index 85dc93a..4ec6200 100644
--- a/base/schema-csharp/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -64,7 +65,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 5 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 5 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -74,7 +75,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 5 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 5 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp/test/inputs/schema/simple-ref.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/simple-ref.schema/default/QuickType.cs
index 9954593..0408787 100644
--- a/base/schema-csharp/test/inputs/schema/simple-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/simple-ref.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/strict-optional.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/strict-optional.schema/default/QuickType.cs
index 2d46750..782ea4e 100644
--- a/base/schema-csharp/test/inputs/schema/strict-optional.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/strict-optional.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/top-level-array.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/top-level-array.schema/default/QuickType.cs
index 945818d..5f45b5d 100644
--- a/base/schema-csharp/test/inputs/schema/top-level-array.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/top-level-array.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/top-level-enum.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
index 92f5051..51f6fc9 100644
--- a/base/schema-csharp/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
index 49f07d7..dc31308 100644
--- a/base/schema-csharp/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
index c98fc10..990fffc 100644
--- a/base/schema-csharp/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/tuple.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/tuple.schema/default/QuickType.cs
index 56fae2e..d5af735 100644
--- a/base/schema-csharp/test/inputs/schema/tuple.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/tuple.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
index 16b628e..b473dcb 100644
--- a/base/schema-csharp/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/union-int-double.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/union-int-double.schema/default/QuickType.cs
index 4989b54..2e56757 100644
--- a/base/schema-csharp/test/inputs/schema/union-int-double.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/union-int-double.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/union-list.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/union-list.schema/default/QuickType.cs
index 8bc613d..8814472 100644
--- a/base/schema-csharp/test/inputs/schema/union-list.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/union-list.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/union.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/union.schema/default/QuickType.cs
index f801cdb..16d108a 100644
--- a/base/schema-csharp/test/inputs/schema/union.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/uuid.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/uuid.schema/default/QuickType.cs
index 2a0942b..d464443 100644
--- a/base/schema-csharp/test/inputs/schema/uuid.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/uuid.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp/test/inputs/schema/vega-lite.schema/default/QuickType.cs b/head/schema-csharp/test/inputs/schema/vega-lite.schema/default/QuickType.cs
index 14be422..813c6ae 100644
--- a/base/schema-csharp/test/inputs/schema/vega-lite.schema/default/QuickType.cs
+++ b/head/schema-csharp/test/inputs/schema/vega-lite.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/head/schema-csharp-SystemTextJson/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs
new file mode 100644
index 0000000..a885d98
--- /dev/null
+++ b/head/schema-csharp-SystemTextJson/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs
@@ -0,0 +1,197 @@
+// <auto-generated />
+//
+// To parse this JSON data, add NuGet 'System.Text.Json' then do:
+//
+//    using QuickType;
+//
+//    var topLevel = TopLevel.FromJson(jsonString);
+#nullable enable
+#pragma warning disable CS8618
+#pragma warning disable CS8601
+#pragma warning disable CS8602
+#pragma warning disable CS8603
+#pragma warning disable CS8604
+
+namespace QuickType
+{
+    using System;
+    using System.Collections.Generic;
+    using System.Linq;
+
+    using System.Text.Json;
+    using System.Text.Json.Serialization;
+    using System.Globalization;
+
+    public partial class TopLevel
+    {
+        [JsonRequired]
+        [JsonPropertyName("value")]
+        [JsonConverter(typeof(MinMaxLengthCheckConverter))]
+        public string Value { get; set; }
+    }
+
+    public partial class TopLevel
+    {
+        public static TopLevel FromJson(string json) => global::System.Text.Json.JsonSerializer.Deserialize<TopLevel>(json, QuickType.Converter.Settings);
+    }
+
+    public static partial class Serialize
+    {
+        public static string ToJson(this TopLevel self) => JsonSerializer.Serialize(self, QuickType.Converter.Settings);
+    }
+
+    internal static partial class Converter
+    {
+        public static readonly JsonSerializerOptions Settings = new(JsonSerializerDefaults.General)
+        {
+            Converters =
+            {
+                new DateOnlyConverter(),
+                new TimeOnlyConverter(),
+                IsoDateTimeOffsetConverter.Singleton
+            },
+        };
+    }
+
+    internal class MinMaxLengthCheckConverter : JsonConverter<string>
+    {
+        public override bool CanConvert(Type t) => t == typeof(string);
+
+        public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+        {
+            var value = reader.GetString();
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 2)
+            {
+                return value;
+            }
+            throw new JsonException("Cannot unmarshal type string");
+        }
+
+        public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
+        {
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 2)
+            {
+                JsonSerializer.Serialize(writer, value, options);
+                return;
+            }
+            throw new NotSupportedException("Cannot marshal type string");
+        }
+
+        public static readonly MinMaxLengthCheckConverter Singleton = new MinMaxLengthCheckConverter();
+    }
+    
+    public class DateOnlyConverter : JsonConverter<DateOnly>
+    {
+        private readonly string serializationFormat;
+        public DateOnlyConverter() : this(null) { }
+
+        public DateOnlyConverter(string? serializationFormat)
+        {
+                this.serializationFormat = serializationFormat ?? "yyyy-MM-dd";
+        }
+
+        public override DateOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+        {
+                var value = reader.GetString();
+                return DateOnly.Parse(value!);
+        }
+
+        public override void Write(Utf8JsonWriter writer, DateOnly value, JsonSerializerOptions options)
+                => writer.WriteStringValue(value.ToString(serializationFormat));
+    }
+
+    public class TimeOnlyConverter : JsonConverter<TimeOnly>
+    {
+        private readonly string serializationFormat;
+
+        public TimeOnlyConverter() : this(null) { }
+
+        public TimeOnlyConverter(string? serializationFormat)
+        {
+                this.serializationFormat = serializationFormat ?? "HH:mm:ss.fff";
+        }
+
+        public override TimeOnly Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+        {
+                var value = reader.GetString();
+                return TimeOnly.Parse(value!);
+        }
+
+        public override void Write(Utf8JsonWriter writer, TimeOnly value, JsonSerializerOptions options)
+                => writer.WriteStringValue(value.ToString(serializationFormat));
+    }
+
+    internal class IsoDateTimeOffsetConverter : JsonConverter<DateTimeOffset>
+    {
+        public override bool CanConvert(Type t) => t == typeof(DateTimeOffset);
+
+        private const string DefaultDateTimeFormat = "yyyy'-'MM'-'dd'T'HH':'mm':'ss.FFFFFFFK";
+
+        private DateTimeStyles _dateTimeStyles = DateTimeStyles.RoundtripKind;
+        private string? _dateTimeFormat;
+        private CultureInfo? _culture;
+
+        public DateTimeStyles DateTimeStyles
+        {
+                get => _dateTimeStyles;
+                set => _dateTimeStyles = value;
+        }
+
+        public string? DateTimeFormat
+        {
+                get => _dateTimeFormat ?? string.Empty;
+                set => _dateTimeFormat = (string.IsNullOrEmpty(value)) ? null : value;
+        }
+
+        public CultureInfo Culture
+        {
+                get => _culture ?? CultureInfo.CurrentCulture;
+                set => _culture = value;
+        }
+
+        public override void Write(Utf8JsonWriter writer, DateTimeOffset value, JsonSerializerOptions options)
+        {
+                string text;
+
+
+                if ((_dateTimeStyles & DateTimeStyles.AdjustToUniversal) == DateTimeStyles.AdjustToUniversal
+                        || (_dateTimeStyles & DateTimeStyles.AssumeUniversal) == DateTimeStyles.AssumeUniversal)
+                {
+                        value = value.ToUniversalTime();
+                }
+
+                text = value.ToString(_dateTimeFormat ?? DefaultDateTimeFormat, Culture);
+
+                writer.WriteStringValue(text);
+        }
+
+        public override DateTimeOffset Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
+        {
+                string? dateText = reader.GetString();
+
+                if (string.IsNullOrEmpty(dateText) == false)
+                {
+                        if (!string.IsNullOrEmpty(_dateTimeFormat))
+                        {
+                                return DateTimeOffset.ParseExact(dateText, _dateTimeFormat, Culture, _dateTimeStyles);
+                        }
+                        else
+                        {
+                                return DateTimeOffset.Parse(dateText, Culture, _dateTimeStyles);
+                        }
+                }
+                else
+                {
+                        return default(DateTimeOffset);
+                }
+        }
+
+
+        public static readonly IsoDateTimeOffsetConverter Singleton = new IsoDateTimeOffsetConverter();
+    }
+}
+#pragma warning restore CS8618
+#pragma warning restore CS8601
+#pragma warning restore CS8602
+#pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/accessors.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/accessors.schema/default/QuickType.cs
index 57fa600..4dcafdc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/accessors.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/accessors.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -265,3 +267,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
index da4efe6..ee70613 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -255,3 +257,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/any.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/any.schema/default/QuickType.cs
index c4c176a..aeef66d 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/any.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/any.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/bool-string.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/bool-string.schema/default/QuickType.cs
index 77464fd..d565e1d 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/bool-string.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/bool-string.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -414,3 +416,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
index 56569f0..9fe68a0 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -174,3 +176,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/camelCase.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/camelCase.schema/default/QuickType.cs
index 0e550cc..04888d5 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/camelCase.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/camelCase.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/class-map-union.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/class-map-union.schema/default/QuickType.cs
index 197086b..95b76ef 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/class-map-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/class-map-union.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -238,3 +240,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/class-with-additional.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
index 07c2f1d..c4209d0 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -211,3 +213,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
index 928b445..6da69f4 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -206,3 +208,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
index 8a3d541..09422da 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -212,3 +214,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
index 8bad258..aec48ba 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -176,3 +178,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection.schema/default/QuickType.cs
index 4d3d7ae..e98a684 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/comment-injection.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -213,3 +215,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/const-non-string.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/const-non-string.schema/default/QuickType.cs
index f3a07dc..ae04aa8 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/const-non-string.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/const-non-string.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -210,3 +212,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/constructor.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/constructor.schema/default/QuickType.cs
index 24705d2..6423d58 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/constructor.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/constructor.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -214,3 +216,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/cut-enum.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/cut-enum.schema/default/QuickType.cs
index 6a13153..497943c 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/cut-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/cut-enum.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
index 1f508d0..328d42a 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -253,3 +255,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/date-time.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/date-time.schema/default/QuickType.cs
index e37e789..3bc8f8d 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/date-time.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/date-time.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -289,3 +291,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/default-value.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/default-value.schema/default/QuickType.cs
index bd3abaa..19c9bc6 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/default-value.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/default-value.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -167,3 +169,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
index 8e2208e..6e6f897 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -167,3 +169,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/description.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/description.schema/default/QuickType.cs
index 687cbb2..3cd9b35 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/description.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/description.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -338,3 +340,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/direct-union.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/direct-union.schema/default/QuickType.cs
index 2a90935..9e001f7 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/direct-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/direct-union.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -274,3 +276,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/empty-object.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/empty-object.schema/default/QuickType.cs
index e89768e..887a0d3 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/empty-object.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/empty-object.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -157,3 +159,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/enum-large.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/enum-large.schema/default/QuickType.cs
index c509c8c..b60cc7c 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/enum-large.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/enum-large.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -337,3 +339,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/enum-with-null.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
index 0e3eb4b..15b5bbc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -201,3 +203,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/enum-with-values.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
index 243cb88..ea38ffc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -226,3 +228,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/enum.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/enum.schema/default/QuickType.cs
index 854bb6d..a06a503 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/enum.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -371,3 +373,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
index 3e434bc..83afa18 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
index 5e9e0f4..55aba38 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -201,3 +203,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/id-no-address.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/id-no-address.schema/default/QuickType.cs
index 6a22781..56e875f 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/id-no-address.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/id-no-address.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/id-root.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/id-root.schema/default/QuickType.cs
index e62a32f..e857f7f 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/id-root.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/id-root.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
index 7952e86..092ceb4 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
index afd464a..440bee5 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
index f8483af..437c2cc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -271,3 +273,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
index 965344b..7d46ea8 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/integer-before-number.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
index 4c69859..20edded 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -211,3 +213,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/integer-float-union.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
index 81c879c..a0c6ffa 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -215,3 +217,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/integer-string.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/integer-string.schema/default/QuickType.cs
index 7f3e5a9..cdb302b 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/integer-string.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/integer-string.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -411,3 +413,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/integer-type.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/integer-type.schema/default/QuickType.cs
index a52c0dd..383ddf4 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/integer-type.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/integer-type.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -196,3 +198,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/intersection-nested.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
index a295272..919b01b 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/intersection.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/intersection.schema/default/QuickType.cs
index 977597c..207d9e3 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/intersection.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/intersection.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -175,3 +177,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
index 56bce9b..7ea4134 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -157,3 +159,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/keyword-enum.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
index 53a0a52..2df4969 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -1576,3 +1578,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/keyword-unions.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
index 73c8e68..04d0ac9 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -15068,3 +15070,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/light.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/light.schema/default/QuickType.cs
index 446eaaa..81ab64e 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/light.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/light.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -179,3 +181,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/list.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/list.schema/default/QuickType.cs
index b8d3a3f..41636cc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/list.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/list.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -167,3 +169,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/min-max-items.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/min-max-items.schema/default/QuickType.cs
index d61f780..185cb91 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/min-max-items.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/min-max-items.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -226,3 +228,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/minmax-integer.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
index 271b440..83c458b 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -192,3 +194,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/minmax.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/minmax.schema/default/QuickType.cs
index db847e4..ef466d6 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/minmax.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/minmax.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -333,3 +335,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/minmaxlength.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
index c147337..ec9f1bd 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -107,7 +109,7 @@ namespace QuickType
                     return new InUnion { Double = doubleValue1 };
                 case JsonTokenType.String:
                     var stringValue = reader.GetString();
-                    if (stringValue.Length >= 3 && stringValue.Length <= 5)
+                    if (stringValue.Count(c => !char.IsLowSurrogate(c)) >= 3 && stringValue.Count(c => !char.IsLowSurrogate(c)) <= 5)
                     {
                         return new InUnion { String = stringValue };
                     }
@@ -125,7 +127,7 @@ namespace QuickType
             }
             if (value.String != null)
             {
-                if (value.String.Length >= 3 && value.String.Length <= 5)
+                if (value.String.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.String.Count(c => !char.IsLowSurrogate(c)) <= 5)
                 {
                     JsonSerializer.Serialize(writer, value.String, options);
                     return;
@@ -144,7 +146,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length >= 3 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -153,7 +155,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length >= 3 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -171,7 +173,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length >= 4 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 4 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -180,7 +182,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length >= 4 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 4 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -198,7 +200,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -207,7 +209,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -225,7 +227,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length >= 3)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3)
             {
                 return value;
             }
@@ -234,7 +236,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length >= 3)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -252,7 +254,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length >= 3 && value.Length <= 6)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 6)
             {
                 return value;
             }
@@ -261,7 +263,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length >= 3 && value.Length <= 6)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 6)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -386,3 +388,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
index 90ef98e..a7a7b86 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -297,3 +299,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
index 255156a..129ba00 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -217,3 +219,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
index 90bef05..dfdff7b 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -183,3 +185,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
index 2e53b43..1829673 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
index c0f4e41..bef8b80 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -204,3 +206,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/object-type-required.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/object-type-required.schema/default/QuickType.cs
index c86a59a..7560fd3 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/object-type-required.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/object-type-required.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-any.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-any.schema/default/QuickType.cs
index b961ee0..1423716 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-any.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-any.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -167,3 +169,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
index f15eb9b..52e7ef6 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -95,7 +97,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length >= 2 && value.Length <= 16)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 16)
             {
                 return value;
             }
@@ -104,7 +106,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length >= 2 && value.Length <= 16)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 16)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -256,3 +258,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-constraints.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
index f834abf..54b8242 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -102,7 +104,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length >= 3 && value.Length <= 10)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 10)
             {
                 return value;
             }
@@ -111,7 +113,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length >= 3 && value.Length <= 10)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 10)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -236,3 +238,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-date-time.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
index 399ba3c..cd26ff7 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -184,3 +186,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-enum.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-enum.schema/default/QuickType.cs
index ea4ed68..52000bc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/optional-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/optional-enum.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -205,3 +207,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/pattern.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/pattern.schema/default/QuickType.cs
index 64cef54..6a39b86 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/pattern.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/pattern.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/postman-collection.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/postman-collection.schema/default/QuickType.cs
index 78aa0eb..183a16c 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/postman-collection.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/postman-collection.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -182,3 +184,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/prefix-items.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/prefix-items.schema/default/QuickType.cs
index 236ea4f..e2ff403 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/prefix-items.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/prefix-items.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -215,3 +217,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
index aa79cc1..51b97bc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -569,3 +571,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/ref-id-files.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
index 6a13153..497943c 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/ref-remote.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/ref-remote.schema/default/QuickType.cs
index b8d3a3f..41636cc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/ref-remote.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/ref-remote.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -167,3 +169,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/renaming-bug.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
index 1d86e67..20c281f 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -228,7 +230,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length >= 1)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 1)
             {
                 return value;
             }
@@ -237,7 +239,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length >= 1)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 1)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -485,3 +487,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/required-draft3.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/required-draft3.schema/default/QuickType.cs
index 2b0d0be..051f791 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/required-draft3.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/required-draft3.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/required-non-properties.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
index d5ac7be..2b8b28e 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/required.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/required.schema/default/QuickType.cs
index 2b0d0be..051f791 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/required.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/required.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
index 6878683..5fc2f45 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -231,3 +233,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/schema-constraints.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
index 24d4322..ce28301 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -63,7 +65,7 @@ namespace QuickType
         public override string Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
         {
             var value = reader.GetString();
-            if (value.Length >= 5 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 5 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -72,7 +74,7 @@ namespace QuickType
 
         public override void Write(Utf8JsonWriter writer, string value, JsonSerializerOptions options)
         {
-            if (value.Length >= 5 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 5 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 JsonSerializer.Serialize(writer, value, options);
                 return;
@@ -224,3 +226,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/simple-ref.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/simple-ref.schema/default/QuickType.cs
index b8d3a3f..41636cc 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/simple-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/simple-ref.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -167,3 +169,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/strict-optional.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/strict-optional.schema/default/QuickType.cs
index 957d81d..07f6500 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/strict-optional.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/strict-optional.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -164,3 +166,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/top-level-array.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/top-level-array.schema/default/QuickType.cs
index ce8f551..6e07ed4 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/top-level-array.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/top-level-array.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -168,3 +170,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/top-level-enum.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
index 0aaef41..eae735f 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -199,3 +201,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
index b60d852..70fa1a9 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -157,3 +159,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
index b01b7f1..cc0709c 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -157,3 +159,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/tuple.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/tuple.schema/default/QuickType.cs
index 0cbcac4..02167e0 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/tuple.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/tuple.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -211,3 +213,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
index cd30202..e211e38 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -293,3 +295,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/union-int-double.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/union-int-double.schema/default/QuickType.cs
index 7e0ed63..30ac6be 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/union-int-double.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/union-int-double.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -225,3 +227,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/union-list.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/union-list.schema/default/QuickType.cs
index 66bd2b2..d832fe8 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/union-list.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/union-list.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -217,3 +219,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/union.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/union.schema/default/QuickType.cs
index d429621..c1cd9af 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/union.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/union.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -172,3 +174,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/uuid.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/uuid.schema/default/QuickType.cs
index ae65d5b..4c8526f 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/uuid.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/uuid.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -269,3 +271,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/base/schema-csharp-SystemTextJson/test/inputs/schema/vega-lite.schema/default/QuickType.cs b/head/schema-csharp-SystemTextJson/test/inputs/schema/vega-lite.schema/default/QuickType.cs
index e99718b..a834267 100644
--- a/base/schema-csharp-SystemTextJson/test/inputs/schema/vega-lite.schema/default/QuickType.cs
+++ b/head/schema-csharp-SystemTextJson/test/inputs/schema/vega-lite.schema/default/QuickType.cs
@@ -10,11 +10,13 @@
 #pragma warning disable CS8601
 #pragma warning disable CS8602
 #pragma warning disable CS8603
+#pragma warning disable CS8604
 
 namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Text.Json;
     using System.Text.Json.Serialization;
@@ -12832,3 +12834,4 @@ namespace QuickType
 #pragma warning restore CS8601
 #pragma warning restore CS8602
 #pragma warning restore CS8603
+#pragma warning restore CS8604
diff --git a/head/schema-csharp-records/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs
new file mode 100644
index 0000000..3a21a19
--- /dev/null
+++ b/head/schema-csharp-records/test/inputs/csharp/unicode-codepoint-length.schema/default/QuickType.cs
@@ -0,0 +1,91 @@
+// <auto-generated />
+//
+// To parse this JSON data, add NuGet 'Newtonsoft.Json' then do:
+//
+//    using QuickType;
+//
+//    var topLevel = TopLevel.FromJson(jsonString);
+#nullable enable
+#pragma warning disable CS8618
+#pragma warning disable CS8601
+#pragma warning disable CS8602
+#pragma warning disable CS8603
+#pragma warning disable CS8604
+#pragma warning disable CS8625
+#pragma warning disable CS8765
+
+namespace QuickType
+{
+    using System;
+    using System.Collections.Generic;
+    using System.Linq;
+
+    using System.Globalization;
+    using Newtonsoft.Json;
+    using Newtonsoft.Json.Converters;
+
+    public partial record TopLevel
+    {
+        [JsonProperty("value", Required = Required.Always)]
+        [JsonConverter(typeof(MinMaxLengthCheckConverter))]
+        public string Value { get; set; }
+    }
+
+    public partial record TopLevel
+    {
+        public static TopLevel FromJson(string json) => JsonConvert.DeserializeObject<TopLevel>(json, QuickType.Converter.Settings);
+    }
+
+    public static partial class Serialize
+    {
+        public static string ToJson(this TopLevel self) => JsonConvert.SerializeObject(self, QuickType.Converter.Settings);
+    }
+
+    internal static partial class Converter
+    {
+        public static readonly JsonSerializerSettings Settings = new JsonSerializerSettings
+        {
+            MetadataPropertyHandling = MetadataPropertyHandling.Ignore,
+            DateParseHandling = DateParseHandling.None,
+            Converters =
+            {
+                new IsoDateTimeConverter { DateTimeStyles = DateTimeStyles.AssumeUniversal }
+            },
+        };
+    }
+
+    internal class MinMaxLengthCheckConverter : JsonConverter
+    {
+        public override bool CanConvert(Type t) => t == typeof(string);
+
+        public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
+        {
+            var value = serializer.Deserialize<string>(reader);
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 2)
+            {
+                return value;
+            }
+            throw new Exception("Cannot unmarshal type string");
+        }
+
+        public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
+        {
+            var value = (string)untypedValue;
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 2)
+            {
+                serializer.Serialize(writer, value);
+                return;
+            }
+            throw new Exception("Cannot marshal type string");
+        }
+
+        public static readonly MinMaxLengthCheckConverter Singleton = new MinMaxLengthCheckConverter();
+    }
+}
+#pragma warning restore CS8618
+#pragma warning restore CS8601
+#pragma warning restore CS8602
+#pragma warning restore CS8603
+#pragma warning restore CS8604
+#pragma warning restore CS8625
+#pragma warning restore CS8765
diff --git a/base/schema-csharp-records/test/inputs/schema/accessors.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/accessors.schema/default/QuickType.cs
index 05f0062..243c2c5 100644
--- a/base/schema-csharp-records/test/inputs/schema/accessors.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/accessors.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
index 39252e8..8cf960e 100644
--- a/base/schema-csharp-records/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/all-of-additional-properties-false.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/any.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/any.schema/default/QuickType.cs
index 38bd184..98c7718 100644
--- a/base/schema-csharp-records/test/inputs/schema/any.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/any.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/bool-string.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/bool-string.schema/default/QuickType.cs
index 8eb559c..278b96d 100644
--- a/base/schema-csharp-records/test/inputs/schema/bool-string.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/bool-string.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
index eb02748..6fa09a0 100644
--- a/base/schema-csharp-records/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/boolean-subschema.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/camelCase.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/camelCase.schema/default/QuickType.cs
index c640625..986f74e 100644
--- a/base/schema-csharp-records/test/inputs/schema/camelCase.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/camelCase.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/class-map-union.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/class-map-union.schema/default/QuickType.cs
index 9f35254..2928659 100644
--- a/base/schema-csharp-records/test/inputs/schema/class-map-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/class-map-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/class-with-additional.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
index fb904e4..c3b7840 100644
--- a/base/schema-csharp-records/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/class-with-additional.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
index a634029..5beff38 100644
--- a/base/schema-csharp-records/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/comment-injection-enum-nested-comment.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
index 629a99b..a90f912 100644
--- a/base/schema-csharp-records/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/comment-injection-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
index 10b1172..c79c188 100644
--- a/base/schema-csharp-records/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/comment-injection-nested-comment.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/comment-injection.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/comment-injection.schema/default/QuickType.cs
index f2cb4b6..76f9437 100644
--- a/base/schema-csharp-records/test/inputs/schema/comment-injection.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/comment-injection.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/const-non-string.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/const-non-string.schema/default/QuickType.cs
index 2a665a7..10a0bde 100644
--- a/base/schema-csharp-records/test/inputs/schema/const-non-string.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/const-non-string.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/constructor.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/constructor.schema/default/QuickType.cs
index e1a107b..4301970 100644
--- a/base/schema-csharp-records/test/inputs/schema/constructor.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/constructor.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/cut-enum.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/cut-enum.schema/default/QuickType.cs
index 3fbd5dc..aa8c78e 100644
--- a/base/schema-csharp-records/test/inputs/schema/cut-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/cut-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
index 7861f40..d2cfa5c 100644
--- a/base/schema-csharp-records/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/date-time-or-string.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/date-time.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/date-time.schema/default/QuickType.cs
index 06fcbfa..a0d8d61 100644
--- a/base/schema-csharp-records/test/inputs/schema/date-time.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/date-time.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/default-value.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/default-value.schema/default/QuickType.cs
index 2dad0ac..9ef5d8d 100644
--- a/base/schema-csharp-records/test/inputs/schema/default-value.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/default-value.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
index 2b8c08c..ecbe47d 100644
--- a/base/schema-csharp-records/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/description-with-double-quotes.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/description.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/description.schema/default/QuickType.cs
index b6aa573..c6529ed 100644
--- a/base/schema-csharp-records/test/inputs/schema/description.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/description.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/direct-union.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/direct-union.schema/default/QuickType.cs
index d420262..bae22ce 100644
--- a/base/schema-csharp-records/test/inputs/schema/direct-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/direct-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/empty-object.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/empty-object.schema/default/QuickType.cs
index 20e07a2..85cfe53 100644
--- a/base/schema-csharp-records/test/inputs/schema/empty-object.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/empty-object.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/enum-large.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/enum-large.schema/default/QuickType.cs
index 2db8337..531b461 100644
--- a/base/schema-csharp-records/test/inputs/schema/enum-large.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/enum-large.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/enum-with-null.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
index d636ba6..13a1281 100644
--- a/base/schema-csharp-records/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/enum-with-null.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/enum-with-values.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
index 8d545ab..13d8004 100644
--- a/base/schema-csharp-records/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/enum-with-values.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/enum.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/enum.schema/default/QuickType.cs
index 3ec920b..0675413 100644
--- a/base/schema-csharp-records/test/inputs/schema/enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
index 2a29686..d806a95 100644
--- a/base/schema-csharp-records/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/go-schema-pattern-properties.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
index 7eed847..0477183 100644
--- a/base/schema-csharp-records/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/haskell-enum-forbidden.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/id-no-address.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/id-no-address.schema/default/QuickType.cs
index d1a9a98..f630a5a 100644
--- a/base/schema-csharp-records/test/inputs/schema/id-no-address.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/id-no-address.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/id-root.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/id-root.schema/default/QuickType.cs
index 2d23371..77bea29 100644
--- a/base/schema-csharp-records/test/inputs/schema/id-root.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/id-root.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
index a7d0025..bc54531 100644
--- a/base/schema-csharp-records/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/ie-suffix-singularization.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
index 51a68c7..260d9a2 100644
--- a/base/schema-csharp-records/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/implicit-all-of.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
index 0fdae7f..5870fe9 100644
--- a/base/schema-csharp-records/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/implicit-class-array-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
index 7017e33..3aaf374 100644
--- a/base/schema-csharp-records/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/implicit-one-of.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/integer-before-number.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
index 3daca78..6b84a2d 100644
--- a/base/schema-csharp-records/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/integer-before-number.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/integer-float-union.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
index 1dda56a..d22dae0 100644
--- a/base/schema-csharp-records/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/integer-float-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/integer-string.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/integer-string.schema/default/QuickType.cs
index 9599257..6acd98b 100644
--- a/base/schema-csharp-records/test/inputs/schema/integer-string.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/integer-string.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/integer-type.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/integer-type.schema/default/QuickType.cs
index 368dd60..58b2c33 100644
--- a/base/schema-csharp-records/test/inputs/schema/integer-type.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/integer-type.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/intersection-nested.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
index 5af83fb..dbda5ae 100644
--- a/base/schema-csharp-records/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/intersection-nested.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/intersection.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/intersection.schema/default/QuickType.cs
index cd3333e..febc67c 100644
--- a/base/schema-csharp-records/test/inputs/schema/intersection.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/intersection.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
index 2dbe3b9..51d7e65 100644
--- a/base/schema-csharp-records/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/issue2680-top-level-array.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/keyword-enum.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
index 4500f45..65ab37a 100644
--- a/base/schema-csharp-records/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/keyword-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/keyword-unions.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
index 89dd014..cfee66b 100644
--- a/base/schema-csharp-records/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/keyword-unions.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/light.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/light.schema/default/QuickType.cs
index 2be6542..91cbbc7 100644
--- a/base/schema-csharp-records/test/inputs/schema/light.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/light.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/list.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/list.schema/default/QuickType.cs
index d2421e5..c4e4f2d 100644
--- a/base/schema-csharp-records/test/inputs/schema/list.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/list.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/min-max-items.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/min-max-items.schema/default/QuickType.cs
index 07180cd..3235416 100644
--- a/base/schema-csharp-records/test/inputs/schema/min-max-items.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/min-max-items.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/minmax-integer.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
index ca81abc..dcaa6fc 100644
--- a/base/schema-csharp-records/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/minmax-integer.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/minmax.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/minmax.schema/default/QuickType.cs
index 9b21e00..6beeff0 100644
--- a/base/schema-csharp-records/test/inputs/schema/minmax.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/minmax.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/minmaxlength.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
index 5e70500..989d94b 100644
--- a/base/schema-csharp-records/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/minmaxlength.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -104,7 +105,7 @@ namespace QuickType
                 case JsonToken.String:
                 case JsonToken.Date:
                     var stringValue = serializer.Deserialize<string>(reader);
-                    if (stringValue.Length >= 3 && stringValue.Length <= 5)
+                    if (stringValue.Count(c => !char.IsLowSurrogate(c)) >= 3 && stringValue.Count(c => !char.IsLowSurrogate(c)) <= 5)
                     {
                         return new InUnion { String = stringValue };
                     }
@@ -123,7 +124,7 @@ namespace QuickType
             }
             if (value.String != null)
             {
-                if (value.String.Length >= 3 && value.String.Length <= 5)
+                if (value.String.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.String.Count(c => !char.IsLowSurrogate(c)) <= 5)
                 {
                     serializer.Serialize(writer, value.String);
                     return;
@@ -142,7 +143,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 3 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -152,7 +153,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 3 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 serializer.Serialize(writer, value);
                 return;
@@ -170,7 +171,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 4 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 4 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -180,7 +181,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 4 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 4 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 serializer.Serialize(writer, value);
                 return;
@@ -198,7 +199,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -208,7 +209,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 serializer.Serialize(writer, value);
                 return;
@@ -226,7 +227,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 3)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3)
             {
                 return value;
             }
@@ -236,7 +237,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 3)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3)
             {
                 serializer.Serialize(writer, value);
                 return;
@@ -254,7 +255,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 3 && value.Length <= 6)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 6)
             {
                 return value;
             }
@@ -264,7 +265,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 3 && value.Length <= 6)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 6)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp-records/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
index 98da722..28faa4c 100644
--- a/base/schema-csharp-records/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/multi-type-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
index af54d91..cd7822d 100644
--- a/base/schema-csharp-records/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/mutually-recursive.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
index cc89742..73e8458 100644
--- a/base/schema-csharp-records/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/nested-intersection-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
index e801a76..8c2ff2a 100644
--- a/base/schema-csharp-records/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/non-standard-ref.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
index 6e0b680..56e7d08 100644
--- a/base/schema-csharp-records/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/nullable-optional-one-of.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/object-type-required.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/object-type-required.schema/default/QuickType.cs
index 340ada8..2fdb775 100644
--- a/base/schema-csharp-records/test/inputs/schema/object-type-required.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/object-type-required.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/optional-any.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/optional-any.schema/default/QuickType.cs
index 7ba508f..a8367bc 100644
--- a/base/schema-csharp-records/test/inputs/schema/optional-any.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/optional-any.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
index 4e6ea38..6497cc1 100644
--- a/base/schema-csharp-records/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/optional-const-ref.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -89,7 +90,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 2 && value.Length <= 16)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 16)
             {
                 return value;
             }
@@ -99,7 +100,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 2 && value.Length <= 16)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 2 && value.Count(c => !char.IsLowSurrogate(c)) <= 16)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp-records/test/inputs/schema/optional-constraints.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
index 7a92f3f..3f12aed 100644
--- a/base/schema-csharp-records/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/optional-constraints.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -107,7 +108,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 3 && value.Length <= 10)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 10)
             {
                 return value;
             }
@@ -117,7 +118,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 3 && value.Length <= 10)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 3 && value.Count(c => !char.IsLowSurrogate(c)) <= 10)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp-records/test/inputs/schema/optional-date-time.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
index a3a6376..ad84977 100644
--- a/base/schema-csharp-records/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/optional-date-time.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/optional-enum.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/optional-enum.schema/default/QuickType.cs
index 9f42460..af09531 100644
--- a/base/schema-csharp-records/test/inputs/schema/optional-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/optional-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/pattern.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/pattern.schema/default/QuickType.cs
index 2f8ac46..0f1795f 100644
--- a/base/schema-csharp-records/test/inputs/schema/pattern.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/pattern.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/postman-collection.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/postman-collection.schema/default/QuickType.cs
index dff15cf..dd47113 100644
--- a/base/schema-csharp-records/test/inputs/schema/postman-collection.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/postman-collection.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/prefix-items.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/prefix-items.schema/default/QuickType.cs
index d569477..c47a4d7 100644
--- a/base/schema-csharp-records/test/inputs/schema/prefix-items.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/prefix-items.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
index ffbb9c2..65878f9 100644
--- a/base/schema-csharp-records/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/recursive-union-flattening.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/ref-id-files.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
index 3fbd5dc..aa8c78e 100644
--- a/base/schema-csharp-records/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/ref-id-files.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/ref-remote.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/ref-remote.schema/default/QuickType.cs
index d2421e5..c4e4f2d 100644
--- a/base/schema-csharp-records/test/inputs/schema/ref-remote.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/ref-remote.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/renaming-bug.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
index 214fe96..607ad33 100644
--- a/base/schema-csharp-records/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/renaming-bug.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -199,7 +200,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 1)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 1)
             {
                 return value;
             }
@@ -209,7 +210,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 1)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 1)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp-records/test/inputs/schema/required-draft3.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/required-draft3.schema/default/QuickType.cs
index 01f82cf..fc36506 100644
--- a/base/schema-csharp-records/test/inputs/schema/required-draft3.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/required-draft3.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/required-non-properties.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
index 97d0e74..fa4f0f6 100644
--- a/base/schema-csharp-records/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/required-non-properties.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/required.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/required.schema/default/QuickType.cs
index 01f82cf..fc36506 100644
--- a/base/schema-csharp-records/test/inputs/schema/required.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/required.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
index ad8e5a0..e738db7 100644
--- a/base/schema-csharp-records/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/rust-cycle-breaker-union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/schema-constraints.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
index 3858b84..7d21f0e 100644
--- a/base/schema-csharp-records/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/schema-constraints.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
@@ -64,7 +65,7 @@ namespace QuickType
         public override object ReadJson(JsonReader reader, Type t, object existingValue, JsonSerializer serializer)
         {
             var value = serializer.Deserialize<string>(reader);
-            if (value.Length >= 5 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 5 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 return value;
             }
@@ -74,7 +75,7 @@ namespace QuickType
         public override void WriteJson(JsonWriter writer, object untypedValue, JsonSerializer serializer)
         {
             var value = (string)untypedValue;
-            if (value.Length >= 5 && value.Length <= 5)
+            if (value.Count(c => !char.IsLowSurrogate(c)) >= 5 && value.Count(c => !char.IsLowSurrogate(c)) <= 5)
             {
                 serializer.Serialize(writer, value);
                 return;
diff --git a/base/schema-csharp-records/test/inputs/schema/simple-ref.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/simple-ref.schema/default/QuickType.cs
index d2421e5..c4e4f2d 100644
--- a/base/schema-csharp-records/test/inputs/schema/simple-ref.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/simple-ref.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/strict-optional.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/strict-optional.schema/default/QuickType.cs
index 5783251..6ce5b97 100644
--- a/base/schema-csharp-records/test/inputs/schema/strict-optional.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/strict-optional.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/top-level-array.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/top-level-array.schema/default/QuickType.cs
index 3a73403..5d708b8 100644
--- a/base/schema-csharp-records/test/inputs/schema/top-level-array.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/top-level-array.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/top-level-enum.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
index 92f5051..51f6fc9 100644
--- a/base/schema-csharp-records/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/top-level-enum.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
index 49f07d7..dc31308 100644
--- a/base/schema-csharp-records/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/top-level-primitive-array.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
index c98fc10..990fffc 100644
--- a/base/schema-csharp-records/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/top-level-primitive.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/tuple.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/tuple.schema/default/QuickType.cs
index 6ad67eb..ab1a5fd 100644
--- a/base/schema-csharp-records/test/inputs/schema/tuple.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/tuple.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
index 8dcb1d6..4859f2f 100644
--- a/base/schema-csharp-records/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/unevaluated-properties.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/union-int-double.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/union-int-double.schema/default/QuickType.cs
index 72d4963..58c2a43 100644
--- a/base/schema-csharp-records/test/inputs/schema/union-int-double.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/union-int-double.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/union-list.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/union-list.schema/default/QuickType.cs
index 7e48097..d5241e1 100644
--- a/base/schema-csharp-records/test/inputs/schema/union-list.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/union-list.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/union.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/union.schema/default/QuickType.cs
index de71561..760b1c2 100644
--- a/base/schema-csharp-records/test/inputs/schema/union.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/union.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/uuid.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/uuid.schema/default/QuickType.cs
index f78765a..524bf5d 100644
--- a/base/schema-csharp-records/test/inputs/schema/uuid.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/uuid.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
diff --git a/base/schema-csharp-records/test/inputs/schema/vega-lite.schema/default/QuickType.cs b/head/schema-csharp-records/test/inputs/schema/vega-lite.schema/default/QuickType.cs
index a1ba5ce..57d97b4 100644
--- a/base/schema-csharp-records/test/inputs/schema/vega-lite.schema/default/QuickType.cs
+++ b/head/schema-csharp-records/test/inputs/schema/vega-lite.schema/default/QuickType.cs
@@ -18,6 +18,7 @@ namespace QuickType
 {
     using System;
     using System.Collections.Generic;
+    using System.Linq;
 
     using System.Globalization;
     using Newtonsoft.Json;
