Beispiel #1
0
        public bool IsEquivelent(MemberDetails other)
        {
            var mySyntax    = _details.ToList();
            var otherSyntax = other._details.ToList();

            if (mySyntax.Count != otherSyntax.Count)
            {
                return(false);
            }

            for (int i = 0; i < mySyntax.Count; i++)
            {
                if (!mySyntax[i].IsEquivelent(otherSyntax[i]))
                {
                    return(false);
                }
            }
            return(true);
        }
Beispiel #2
0
 public int CompareTo(MemberDetails other)
 {
     return(ToString().CompareTo(other.ToString()));
 }