From db790920aad8530b8bdb05127563a5f6ee38bcf2 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Thu, 11 Mar 2021 16:54:58 +0000 Subject: [PATCH] One-line example WriteLine invocation --- .../src/BooleanExtensions/BooleanExtensions.cs | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/X10D/src/BooleanExtensions/BooleanExtensions.cs b/X10D/src/BooleanExtensions/BooleanExtensions.cs index 54f8161..262133f 100644 --- a/X10D/src/BooleanExtensions/BooleanExtensions.cs +++ b/X10D/src/BooleanExtensions/BooleanExtensions.cs @@ -32,10 +32,8 @@ namespace X10D.BooleanExtensions /// bool falseFlag = false; /// bool trueFlag = true; /// - /// Console.WriteLine("{0} converts to {1}.", falseFlag, - /// falseFlag.ToByte()); - /// Console.WriteLine("{0} converts to {1}.", trueFlag, - /// trueFlag.ToByte()); + /// Console.WriteLine("{0} converts to {1}.", falseFlag, falseFlag.ToByte()); + /// Console.WriteLine("{0} converts to {1}.", trueFlag, trueFlag.ToByte()); /// // The example displays the following output: /// // False converts to 0. /// // True converts to 1. @@ -61,10 +59,8 @@ namespace X10D.BooleanExtensions /// bool falseFlag = false; /// bool trueFlag = true; /// - /// Console.WriteLine("{0} converts to {1}.", falseFlag, - /// falseFlag.ToDouble()); - /// Console.WriteLine("{0} converts to {1}.", trueFlag, - /// trueFlag.ToDouble()); + /// Console.WriteLine("{0} converts to {1}.", falseFlag, falseFlag.ToDecimal()); + /// Console.WriteLine("{0} converts to {1}.", trueFlag, trueFlag.ToDecimal()); /// // The example displays the following output: /// // False converts to 0. /// // True converts to 1. @@ -90,10 +86,8 @@ namespace X10D.BooleanExtensions /// bool falseFlag = false; /// bool trueFlag = true; /// - /// Console.WriteLine("{0} converts to {1}.", falseFlag, - /// falseFlag.ToDouble()); - /// Console.WriteLine("{0} converts to {1}.", trueFlag, - /// trueFlag.ToDouble()); + /// Console.WriteLine("{0} converts to {1}.", falseFlag, falseFlag.ToDouble()); + /// Console.WriteLine("{0} converts to {1}.", trueFlag, trueFlag.ToDouble()); /// // The example displays the following output: /// // False converts to 0. /// // True converts to 1.