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

            writer.Write(value);
        }