public static void WriteLine(this TerminalWriter writer, string?value) { writer.Write(value + Environment.NewLine); }
public static void WriteLine(this TerminalWriter writer) { writer.Write(Environment.NewLine); }
public static void Write <T>(this TerminalWriter writer, T value) { writer.Write(value?.ToString()); }
public static void Write(this TerminalWriter writer, string format, params object?[] args) { writer.Write(string.Format(CultureInfo.CurrentCulture, format, args)); }
public static void WriteBinary(this TerminalWriter writer, ReadOnlySpan <byte> value) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.Write(value); }