mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
27 lines
492 B
C#
27 lines
492 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
|
|||
|
|
namespace Serein.Script.Node
|
|||
|
|
{
|
|||
|
|
public class ValueNode<T> : ASTNode
|
|||
|
|
{
|
|||
|
|
public T Value { get; protected set; }
|
|||
|
|
|
|||
|
|
public ValueNode()
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
public ValueNode(T value)
|
|||
|
|
{
|
|||
|
|
this.Value = value;
|
|||
|
|
}
|
|||
|
|
public override string ToString()
|
|||
|
|
{
|
|||
|
|
return $"{Value}";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|