AddRange
AddRange(IEnumerable<string[]>)
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
AddRange(string[][])
Adds the specified collection of synonym groups to this instance of the SynonymDictionary
.
public void AddRange(string[][] synonyms)
Parameter |
Type |
Description |
synonyms |
String[][] |
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