AddRange

SynonymDictionary.AddRange method

Adds the specified collection of synonym groups to this instance of the SynonymDictionary.

public void AddRange(IEnumerable<string[]> synonyms)
Parameter Type Description
synonyms IEnumerable`1 The collection of synonym groups to add to the dictionary.

Exceptions

exception condition
ArgumentNullException Thrown when synonyms is null.
ArgumentException Thrown when number of synonyms in a group is less than 2.

See Also