本文整理汇总了C#中INode.ToList方法的典型用法代码示例。如果您正苦于以下问题:C# INode.ToList方法的具体用法?C# INode.ToList怎么用?C# INode.ToList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类INode
的用法示例。
在下文中一共展示了INode.ToList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: FunctionCall
protected Token _function; // function Token
#endregion Fields
#region Constructors
/// <summary>
/// constructor
/// </summary>
/// <param name="token"></param>
/// <param name="arguments"></param>
public FunctionCall(Token token, INode [] arguments, Engine engine = null)
: base(engine: engine)
{
// TODO: check the argumetns
_function = token;
this.Nodes = new ObservableCollection<INode> (arguments.ToList());
}
示例2: StatementBlock
/// <summary>
/// constructor
/// </summary>
/// <param name="token"></param>
/// <param name="arguments"></param>
public StatementBlock(INode[] arguments, Engine engine = null)
: base(engine)
{
this.NodeType = otXPTNodeType.StatementBlock;
this.Nodes = new ObservableCollection<INode>(arguments.ToList());
}
示例3: Unit
/// <summary>
/// constructor
/// </summary>
/// <param name="token"></param>
/// <param name="arguments"></param>
public Unit(INode[] arguments, Engine engine = null)
: base(engine)
{
this.NodeType = otXPTNodeType.Unit;
this.Nodes = new ObservableCollection<INode>(arguments.ToList());
}
示例4: SelectionStatementBlock
/// <summary>
/// constructor
/// </summary>
/// <param name="token"></param>
/// <param name="arguments"></param>
public SelectionStatementBlock(INode[] arguments, Engine engine = null)
: base(engine)
{
this.NodeType = otXPTNodeType.SelectionStatementBlock;
// arguments will be checked in event
this.Nodes = new ObservableCollection<INode>(arguments.ToList());
}