From a8819905dc5ec4e892e195463be5990e13be9a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20BECHER?= Date: Fri, 15 Mar 2024 23:48:09 +0100 Subject: [PATCH] Seal custom writers --- Nbt/Util/IndentedWriter.cs | 2 +- Nbt/Util/QuotedWriter.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Nbt/Util/IndentedWriter.cs b/Nbt/Util/IndentedWriter.cs index 0902fd7..2c23cf6 100755 --- a/Nbt/Util/IndentedWriter.cs +++ b/Nbt/Util/IndentedWriter.cs @@ -2,7 +2,7 @@ using System.Text; namespace Nbt; -public sealed class IndentedWriter(TextWriter baseWriter, string indent, bool leaveOpen = false) : TextWriter +internal sealed class IndentedWriter(TextWriter baseWriter, string indent, bool leaveOpen = false) : TextWriter { private readonly TextWriter baseWriter = baseWriter; private readonly string indent = indent; diff --git a/Nbt/Util/QuotedWriter.cs b/Nbt/Util/QuotedWriter.cs index 0537d53..84a4b8f 100755 --- a/Nbt/Util/QuotedWriter.cs +++ b/Nbt/Util/QuotedWriter.cs @@ -2,7 +2,7 @@ using System.Text; namespace Nbt; -public sealed class QuotedWriter(TextWriter baseWriter, char quoteChar, char escapeChar, bool leaveOpen = false) : TextWriter +internal sealed class QuotedWriter(TextWriter baseWriter, char quoteChar, char escapeChar, bool leaveOpen = false) : TextWriter { private readonly TextWriter baseWriter = baseWriter; private readonly char quoteChar = quoteChar;