ABB.Swum.Nodes.PhraseNode.Add C# (CSharp) Method

Add() public method

Adds the given word to the end of the phrase.
public Add ( WordNode word ) : void
word WordNode The word to add.
return void
        public void Add(WordNode word) {
            if(word != null) {
                Words.Add(word);
            }
        }

Same methods

PhraseNode::Add ( PhraseNode phrase ) : void

Usage Example

 /// <summary>
 /// Concatenates the given phrases and assigns the result to Theme.
 /// ** Note that this will potentially modify phrase1. **
 /// </summary>
 /// <param name="phrase1">The first phrase.</param>
 /// <param name="phrase2">The second phrase.</param>
 public void CreateThemeFromPhrases(PhraseNode phrase1, PhraseNode phrase2)
 {
     if (phrase1 != null && !phrase1.IsEmpty())
     {
         phrase1.Add(phrase2);
         this.Theme = phrase1;
     }
     else
     {
         this.Theme = phrase2;
     }
 }
All Usage Examples Of ABB.Swum.Nodes.PhraseNode::Add