public override ScriptVariable Clone() { List <ScriptVariable> ret = new List <ScriptVariable>(); foreach (var elem in ScriptVariable.RemoveParamRecursion(this.Value)) { if (elem == null) { ret.Add(null); } else { ret.Add(elem.Clone()); } } return(new ListVariable(ret)); }
public ListVariable(IEnumerable <ScriptVariable> value) : base(ScriptVariableType.List) { _value = ScriptVariable.RemoveParamRecursion(value.ToList()); }