@@ -43,7 +43,7 @@ public static byte[] SerializeToBytes<T>(
4343 public static byte [ ] SerializeToBytes < T > (
4444 this Serializer serializer ,
4545 T ? data ,
46- MemoryStreamFactory ? memoryStreamFactory = null ,
46+ MemoryStreamFactory ? memoryStreamFactory ,
4747 SerializationFormatting formatting = SerializationFormatting . None
4848 )
4949 {
@@ -82,7 +82,7 @@ public static byte[] SerializeToBytes(
8282 this Serializer serializer ,
8383 object ? data ,
8484 Type type ,
85- MemoryStreamFactory ? memoryStreamFactory = null ,
85+ MemoryStreamFactory ? memoryStreamFactory ,
8686 SerializationFormatting formatting = SerializationFormatting . None
8787 )
8888 {
@@ -119,7 +119,7 @@ public static string SerializeToString<T>(
119119 public static string SerializeToString < T > (
120120 this Serializer serializer ,
121121 T ? data ,
122- MemoryStreamFactory ? memoryStreamFactory = null ,
122+ MemoryStreamFactory ? memoryStreamFactory ,
123123 SerializationFormatting formatting = SerializationFormatting . None
124124 )
125125 {
@@ -167,7 +167,7 @@ public static string SerializeToString(
167167 this Serializer serializer ,
168168 object ? data ,
169169 Type type ,
170- MemoryStreamFactory ? memoryStreamFactory = null ,
170+ MemoryStreamFactory ? memoryStreamFactory ,
171171 SerializationFormatting formatting = SerializationFormatting . None
172172 )
173173 {
@@ -219,7 +219,7 @@ public static void Serialize<T>(
219219 this Serializer serializer ,
220220 T ? data ,
221221 Utf8JsonWriter writer ,
222- MemoryStreamFactory ? memoryStreamFactory = null ,
222+ MemoryStreamFactory ? memoryStreamFactory ,
223223 SerializationFormatting formatting = SerializationFormatting . None )
224224 {
225225 if ( serializer is SystemTextJsonSerializer stjSerializer )
@@ -279,7 +279,7 @@ public static void Serialize(
279279 object ? data ,
280280 Type type ,
281281 Utf8JsonWriter writer ,
282- MemoryStreamFactory ? memoryStreamFactory = null ,
282+ MemoryStreamFactory ? memoryStreamFactory ,
283283 SerializationFormatting formatting = SerializationFormatting . None )
284284 {
285285 if ( serializer is SystemTextJsonSerializer stjSerializer )
0 commit comments