AddRange

AddRange(IEnumerable<KeyValuePair<string, string>>)

Adds the specified collection of alias/replacement pairs to this instance of the AliasDictionary.

public void AddRange(IEnumerable<KeyValuePair<string, string>> pairs)
Parameter Type Description
pairs IEnumerable`1 The collection of alias/replacement pairs to add to the dictionary.

Exceptions

exception condition
ArgumentNullException Thrown when pairs or an alias or a text of a pair is null.
ArgumentException Thrown when an alias contains a character that is not from the ranges a-z and 0-9, or a text is empty, consists of white space, or contains a line break or an unpaired surrogate.
InvalidOperationException The index of the dictionary is disposed.

Remarks

The pairs are checked before the dictionary is changed: a call that throws an exception changes nothing.

See Also


AddRange(IEnumerable<AliasReplacementPair>)

Adds the specified collection of alias/replacement pairs to this instance of the AliasDictionary.

public void AddRange(IEnumerable<AliasReplacementPair> pairs)
Parameter Type Description
pairs IEnumerable`1 The collection of alias/replacement pairs to add to the dictionary.

Exceptions

exception condition
ArgumentNullException Thrown when pairs, a pair of it, or an alias or a text of a pair is null.
ArgumentException Thrown when an alias contains a character that is not from the ranges a-z and 0-9, or a text is empty, consists of white space, or contains a line break or an unpaired surrogate.
InvalidOperationException The index of the dictionary is disposed.

Remarks

The pairs are checked before the dictionary is changed: a call that throws an exception changes nothing.

See Also


AddRange(AliasReplacementPair[])

Adds the specified collection of alias/replacement pairs to this instance of the AliasDictionary.

public void AddRange(AliasReplacementPair[] pairs)
Parameter Type Description
pairs AliasReplacementPair[] The collection of alias/replacement pairs to add to the dictionary.

Exceptions

exception condition
ArgumentNullException Thrown when pairs, a pair of it, or an alias or a text of a pair is null.
ArgumentException Thrown when an alias contains a character that is not from the ranges a-z and 0-9, or a text is empty, consists of white space, or contains a line break or an unpaired surrogate.
InvalidOperationException The index of the dictionary is disposed.

Remarks

The pairs are checked before the dictionary is changed: a call that throws an exception changes nothing.

See Also