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.
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.
Adds the specified collection of alias/replacement pairs to this instance of the AliasDictionary.
publicvoidAddRange(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.