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

            writer.Write(value);
        }