From 901cb4a0040b3b6802e36c00091de0871a0ddf00 Mon Sep 17 00:00:00 2001 From: Michael Becker Date: Sat, 22 May 2021 02:24:03 -0400 Subject: [PATCH] implement a simple Tri-State enum (True, False, Unspecified) --- MBS.Framework/MBS.Framework.csproj | 1 + MBS.Framework/TriState.cs | 30 ++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 MBS.Framework/TriState.cs diff --git a/MBS.Framework/MBS.Framework.csproj b/MBS.Framework/MBS.Framework.csproj index f9a69f1..23da91c 100644 --- a/MBS.Framework/MBS.Framework.csproj +++ b/MBS.Framework/MBS.Framework.csproj @@ -112,6 +112,7 @@ + diff --git a/MBS.Framework/TriState.cs b/MBS.Framework/TriState.cs new file mode 100644 index 0000000..f8f7ea8 --- /dev/null +++ b/MBS.Framework/TriState.cs @@ -0,0 +1,30 @@ +// +// TriState.cs +// +// Author: +// Michael Becker +// +// Copyright (c) 2021 Mike Becker's Software +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +using System; +namespace MBS.Framework +{ + public enum TriState + { + Unspecified = -1, + False = 0, + True = 1 + } +}