diff options
| author | Michael Williamson <mike@zwobble.org> | 2025-08-03 08:17:37 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2025-08-03 08:17:37 +0100 |
| commit | 967616c4105bedf494948f87fae3e665e55bfd18 (patch) | |
| tree | 0b1d47dbb639e6962129b23b83d6dd1b33d731a0 | |
| parent | 4989f13567602bb7b32321d7c6588b4dcefefb58 (diff) | |
Add MutableBoolean
| -rw-r--r-- | Mammoth/Couscous/mammoth/internal/util/MutableBoolean.cs | 17 |
1 files changed, 17 insertions, 0 deletions
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; + } + } +} |
