Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
7951eb9aaThis file is pinned to the selected release. Download the original to open it in your design tool.
namespace OpenScadGraphEditor.Nodes
{
public class BooleanLiteral : LiteralBase
{
public bool Value { get; set; }
public BooleanLiteral(bool value)
{
Value = value;
}
public override string RenderedValue => Value ? "true" : "false";
public override string SerializedValue
{
get => Value ? "true" : "false";
set => Value = value == "true";
}
public override LiteralType LiteralType => LiteralType.Boolean;
}
}