public bool Equals(EffectSignatureLayout other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } // Check the number of elements if (InputElements.Length != other.InputElements.Length) { return(false); } // Check the signature pointer if (ShaderSignature != other.ShaderSignature) { return(false); } return(!InputElements.Where((t, i) => t != other.InputElements[i]).Any()); }
public bool Equals(EffectSignatureLayout other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; // Check the number of elements if (InputElements.Length != other.InputElements.Length) return false; // Check the signature pointer if (ShaderSignature != other.ShaderSignature) return false; return !InputElements.Where((t, i) => t != other.InputElements[i]).Any(); }