private bool Equals(CppFunctionType other) { if (base.Equals(other) && ReturnType.Equals(other.ReturnType)) { if (Parameters.Count != other.Parameters.Count) { return(false); } for (int i = 0; i < Parameters.Count; i++) { var fromType = Parameters[i].Type; var otherType = other.Parameters[i].Type; if (!fromType.Equals(otherType)) { return(false); } } return(true); } return(false); }
private bool Equals(CppFunctionType other) { return(base.Equals(other) && ReturnType.Equals(other.ReturnType) && ParameterTypes.SequenceEqual(other.ParameterTypes)); }