[This is preliminary documentation and is subject to change.]

Represents a basic true/false value. Also Supports Null.

Namespace:  Firefly.Box
Assembly:  Firefly.Box (in Firefly.Box.dll) Version: 3.4.23.6473 (3.4.23.6473)

Syntax

C#
public abstract class Bool : DataTypeBase, 
	IComparable
Visual Basic (Declaration)
Public MustInherit Class Bool _
	Inherits DataTypeBase _
	Implements IComparable
Visual C++
public ref class Bool abstract : public DataTypeBase, 
	IComparable

Examples

Bool behaviour
This example is in the form of Unit Tests. It references the NUnit framework. This framework can be downloaded from www.NUnit.org. For more information about unit testing visit: www.NUnit.org.
CopyC#
using System;
using System.Collections.Generic;
using System.Text;
using NUnit.Framework;
using Firefly.Box;
using Firefly.Box.Testing;

namespace TestFirefly.Box.Documentation
{
    [TestFixture]
    public class DemoBool
    {
        [Test]
        public void Test1()
        {
            Bool b = true;
            b.ShouldBe(true);
            b = false;
            b.ShouldBe(false);
            b = null;
            if (b)
            {
                throw new Exception("When b is null, it should behave as false");
            }
        }
    }
}

Inheritance Hierarchy

See Also