aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Scripting/Tango.Scripting.Editors/Editing/DragDropException.cs
blob: 2ba8e41ec7edcc7e70f5afd3dbcb7f6b74a3531c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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
{
	/// <summary>
	/// Reuse the same instances for boxed booleans.
	/// </summary>
	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;
		}
	}
}
an>/// Creates a new DragDropException. /// </summary> public DragDropException() : base() { } /// <summary> /// Creates a new DragDropException. /// </summary> public DragDropException(string message) : base(message) { } /// <summary> /// Creates a new DragDropException. /// </summary> public DragDropException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Deserializes a DragDropException. /// </summary> protected DragDropException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }