5 namespace SiliconStudio.Shaders.Ast
31 IsUsingBase = isUsingBase;
56 public int Index {
get; set; }
64 public bool IsUsingBase {
get; set; }
68 if (ReferenceEquals(null, other))
return false;
69 if (ReferenceEquals(
this, other))
return true;
70 return Equals(other.
Name, Name) && Equals(other.
Holder, Holder) && other.Index == Index && other.IsUsingBase.Equals(IsUsingBase);
73 public override bool Equals(
object obj)
75 if (ReferenceEquals(null, obj))
return false;
76 if (ReferenceEquals(
this, obj))
return true;
85 int result = Name.GetHashCode();
86 result = (result * 397) ^ Holder.GetHashCode();
87 result = (result * 397) ^ Index;
88 result = (result * 397) ^ IsUsingBase.GetHashCode();
IGenerics Holder
Gets or sets the holder.
GenericDeclaration(Identifier name, IGenerics holder, int index, bool isUsingBase)
Initializes a new instance of the GenericDeclaration class.
GenericDeclaration()
Initializes a new instance of the GenericDeclaration class.
bool Equals(GenericDeclaration other)
override int GetHashCode()
A generic declaration. This is used internally to identify a generic declaration. ...
An interface used by generic definitions and instance.
Identifier Name
Gets or sets the name of this declaration
Toplevel interface for a declaration.
override bool Equals(object obj)