AddRange

HomophoneDictionary.AddRange method

Adds the specified collection of homophone groups to this instance of the HomophoneDictionary.

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

Exceptions

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

See Also