Ejemplo n.º 1
0
        public override bool Equals(Object obj)
        {
            if (obj.GetType() != this.GetType())
            {
                return(false);
            }
            GroupedLetterSym gls = (GroupedLetterSym)obj;

            if (_letters.Length != gls._letters.Length)
            {
                return(false);
            }
            for (int i = 0; i < _letters.Length; i++)
            {
                if (!_letters[i].Equals(gls._letters[i]))
                {
                    return(false);
                }
            }
            if (!_accent.Equals(gls._accent))
            {
                return(false);
            }
            return(true);
        }
Ejemplo n.º 2
0
        private T _Translate(GroupedLetterSym s)
        {
            /* TODO: need to handle accent */
            List <T> lt = new List <T>();

            foreach (LetterSym ls in s.Letters)
            {
                lt.Add(Translate(ls));
            }
            return(__WrapTranslatedExpr(s, lt));
        }