Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 private bool Equals(CppFunctionType other)
 {
     return(base.Equals(other) && ReturnType.Equals(other.ReturnType) && ParameterTypes.SequenceEqual(other.ParameterTypes));
 }