Exemple #1
0
        public void SetSyllable(FrenchSyllable syl)
        {
#if DEBUG
            if (Syll != null)
            {
                throw new FrenchWordException("Syllable double set");
            }
            Syll = syl;
#endif
        }
Exemple #2
0
        public void ChangeSyllable(FrenchSyllable syl)
        {
#if DEBUG
            if (Syll == null)
            {
                throw new FrenchWordException("A char comb without a syllable set to needs not change a syllable");
            }
            if (Syll == syl)
            {
                throw new FrenchWordException("Change to the same syllable");
            }
#endif
            Syll = syl;
        }