4 using System.Collections;
5 using System.Collections.Generic;
7 namespace SiliconStudio.Shaders.Ast
19 Expressions =
new List<Expression>();
28 Expressions =
new List<Expression>();
29 if (expressions != null)
30 Expressions.AddRange(expressions);
38 return Expressions.Count;
43 public bool IsReadOnly
57 public List<Expression> Expressions {
get; set; }
65 Expressions.AddRange(collection);
76 return Expressions.GetRange(index,
count);
86 Expressions.InsertRange(index, collection);
96 Expressions.RemoveRange(index,
count);
106 return Expressions.RemoveAll(match);
114 return Expressions[index];
119 Expressions[index] = value;
126 Expressions.Add(item);
143 return Expressions.Contains(item);
149 Expressions.CopyTo(array, arrayIndex);
155 return Expressions.GetEnumerator();
161 return Expressions.IndexOf(item);
167 Expressions.Insert(index, item);
173 return Expressions.Remove(item);
179 Expressions.RemoveAt(index);
183 IEnumerator IEnumerable.GetEnumerator()
185 return GetEnumerator();
190 return string.Join(
", ",
this);
void AddRange(IEnumerable< Expression > collection)
Adds a collection to this instance.
ExpressionList()
Initializes a new instance of the ExpressionList class.
void Add(Expression item)
List< Expression > GetRange(int index, int count)
Gets a subset of this instance
void CopyTo(Expression[] array, int arrayIndex)
int RemoveAll(Predicate< Expression > match)
Removes all elements with a predicate function.
bool Contains(Expression item)
IEnumerator< Expression > GetEnumerator()
int IndexOf(Expression item)
bool Remove(Expression item)
override string ToString()
void RemoveRange(int index, int count)
Removes a range of elements.
void Insert(int index, Expression item)
void InsertRange(int index, IEnumerable< Expression > collection)
Inserts a collection at the specified index.
override IEnumerable< Node > Childrens()
Gets the child nodes.
ExpressionList(params Expression[] expressions)
Initializes a new instance of the ExpressionList class.