Logo

Programming-Idioms

History of Idiom 59 > diff from v40 to v41

Edit summary for version 41 by stolee:
New Csharp implementation by user [stolee]

Version 40

2019-02-02, 05:16:26

Version 41

2019-09-26, 14:25:48

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Idiom #59 Write to standard error stream

Print the message "x is negative" to standard error (stderr), with integer x value substitution (e.g. "-2 is negative").

Imports
import System;
Code
Console.Error.WriteLine($"{_x} is negative");
Doc URL
https://docs.microsoft.com/en-us/dotnet/api/system.console.error?view=netframework-4.8