From 4461272f59acc9cd3348f9a03d3f9e8e516198b9 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Sat, 18 Apr 2020 23:13:30 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=95=20Reword=20XML-doc=20in=20BooleanE?= =?UTF-8?q?xtensions.cs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- X10D/src/BooleanExtensions.cs | 47 +++++++++++++++++------------------ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/X10D/src/BooleanExtensions.cs b/X10D/src/BooleanExtensions.cs index 54e8ac4..2286b68 100644 --- a/X10D/src/BooleanExtensions.cs +++ b/X10D/src/BooleanExtensions.cs @@ -5,60 +5,60 @@ /// public static class BooleanExtensions { - /// - /// Gets the value of this boolean and another boolean. + /// Performs logical AND on this and another . /// /// The boolean. /// The boolean comparator. - /// Returns when and are - /// Otherwise, the output is . + /// Returns if AND + /// evaluate to , or otherwise. public static bool And(this bool value, bool comparison) { return value && comparison; } /// - /// Gets the value of this boolean and another boolean. + /// Performs logical NAND on this and another . /// /// The boolean. /// The boolean comparator. - /// Returns if and are - /// . Otherwise, . + /// Returns if NAND + /// evaluate to , or otherwise. public static bool NAnd(this bool value, bool comparison) { return !(value && comparison); } /// - /// Gets the value of this boolean and another boolean. + /// Performs logical NOR on this and another . /// /// The boolean. /// The boolean comparator. - /// Returns if and are - /// . Otherwise, . + /// Returns if NOR + /// evaluate to , or otherwise. public static bool NOr(this bool value, bool comparison) { return !(value || comparison); } /// - /// Toggles this booleans current state. + /// Performs logical NOT on this . /// /// The boolean. - /// Returns the opposite state of this boolean. - public static bool Not(this ref bool value) + /// Returns if is , + /// or otherwise. + public static bool Not(this bool value) { - return value = !value; + return !value; } /// - /// Gets the value of this boolean or another boolean. + /// Performs logical OR on this and another . /// /// The boolean. /// The boolean comparator. - /// Returns if or is - /// . + /// Returns if OR + /// evaluate to , or otherwise. public static bool Or(this bool value, bool comparison) { return value || comparison; @@ -85,25 +85,24 @@ } /// - /// Gets the value of this boolean and another boolean. + /// Performs logical XNOR on this and another . /// /// The boolean. /// The boolean comparator. - /// Returns if and are - /// the same, Otherwise . + /// Returns if XNOR + /// evaluate to , or otherwise. public static bool XNOr(this bool value, bool comparison) { return !(value ^ comparison); } /// - /// Gets the value of this boolean exclusively or another boolean. + /// Performs logical XOR on this and another . /// /// The boolean. /// The boolean comparator. - /// Returns if and are - /// or if and are - /// . + /// Returns if XOR + /// evaluate to , or otherwise. public static bool XOr(this bool value, bool comparison) { return value ^ comparison;