From 2d94ba04d5a2c431011eab1ae65de78b0d5dc90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20H=C3=BCbelbauer?= Date: Mon, 12 Feb 2018 08:43:15 +0100 Subject: [PATCH] Create README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b63097b --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# C# `log` keyword + +Me trying to see if there is a way to bend Roslyn to introduce a new keyword `log` that works like this: + +```csharp +int ClamToPositive(int positiveOrNegative) { + log $"Input ${positiveOrNegative}"; + return positiveOrNegative >= 0 ? positiveOrNegative : 0; +} +```