From 967616c4105bedf494948f87fae3e665e55bfd18 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 3 Aug 2025 08:17:37 +0100 Subject: Add MutableBoolean --- .../Couscous/mammoth/internal/util/MutableBoolean.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Mammoth/Couscous/mammoth/internal/util/MutableBoolean.cs diff --git a/Mammoth/Couscous/mammoth/internal/util/MutableBoolean.cs b/Mammoth/Couscous/mammoth/internal/util/MutableBoolean.cs new file mode 100644 index 0000000..5623f27 --- /dev/null +++ b/Mammoth/Couscous/mammoth/internal/util/MutableBoolean.cs @@ -0,0 +1,17 @@ +namespace Mammoth.Couscous.org.zwobble.mammoth.@internal.util { + internal class MutableBoolean { + private bool value; + + public MutableBoolean(bool initialValue) { + this.value = initialValue; + } + + public bool get() { + return value; + } + + public void set(bool newValue) { + this.value = newValue; + } + } +} -- cgit v1.2.3