4 using System.Collections;
5 using System.Collections.Generic;
8 using SiliconStudio.Core;
10 namespace SiliconStudio.
Paradox.Shaders
22 Values =
new List<ShaderSource>();
29 public List<ShaderSource> Values {
get; set; }
37 Values.Add(composition);
45 public override bool Equals(
object obj)
47 if (ReferenceEquals(null, obj))
return false;
48 if (ReferenceEquals(
this, obj))
return true;
49 if (obj.GetType() != this.GetType())
return false;
55 if (ReferenceEquals(null, other))
return false;
56 if (ReferenceEquals(
this, other))
return true;
58 if (ReferenceEquals(Values, other.
Values))
61 if (ReferenceEquals(Values, null))
64 if (Values.Count != other.
Values.Count)
67 return !Values.Where((t, i) => !t.Equals(other.
Values[i])).
Any();
72 return Utilities.GetHashCode(Values);
77 return Values.GetEnumerator();
80 IEnumerator IEnumerable.GetEnumerator()
82 return GetEnumerator();
87 return string.Format(
"[{0}]", Values != null ? string.Join(
", ", Values) :
string.Empty);
override bool Equals(object obj)
Determines whether the specified System.Object is equal to this instance.
override int GetHashCode()
bool Equals(ShaderArraySource other)
Let the emitter choose the style.
IEnumerator< ShaderSource > GetEnumerator()
ShaderArraySource()
Initializes a new instance of the ShaderArraySource class.
override string ToString()
List< ShaderSource > Values
Gets or sets the values.
An array of ShaderSource used only in shader mixin compositions.
void Add(ShaderSource composition)
Adds the specified composition.
override object Clone()
Deep clones this instance.