From fc8a05358a92cc3c77c5f1e30d536807ef0614fd Mon Sep 17 00:00:00 2001 From: Victoria Plitt Date: Mon, 8 Apr 2019 13:49:55 +0300 Subject: were added scripting projects --- .../Tango.Scripting.Editors/Utils/Boxes.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Utils/Boxes.cs (limited to 'Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Utils/Boxes.cs') diff --git a/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Utils/Boxes.cs b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Utils/Boxes.cs new file mode 100644 index 000000000..517948bae --- /dev/null +++ b/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Utils/Boxes.cs @@ -0,0 +1,21 @@ +// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) +// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) + +using System; + +namespace Tango.Scripting.Editors.Utils +{ + /// + /// Reuse the same instances for boxed booleans. + /// + static class Boxes + { + public static readonly object True = true; + public static readonly object False = false; + + public static object Box(bool value) + { + return value ? True : False; + } + } +} -- cgit v1.3.1