PersistentStringHashAdd(StringBuilder, Int32, Int32) Method

Adds a sequence of characters from the content of a StringBuilder to the hash code that begins with startIndex and contains count characters.

Definition

Namespace: FolkerKinzel.Strings
Assembly: FolkerKinzel.Strings (in FolkerKinzel.Strings.dll) Version: 9.4.0+10a7d4d71aa960998e32ac0ac6c4fcbe4164c917
C#
public void Add(
	StringBuilder builder,
	int startIndex,
	int count
)

Parameters

builder  StringBuilder
The StringBuilder whose content is hashed.
startIndex  Int32
The start index in builder.
count  Int32
The number of characters to hash.

Exceptions

ArgumentNullExceptionbuilder is null.
ArgumentOutOfRangeException

startIndex or count are smaller than zero or larger than the number of characters in builder

- or -

startIndex + count is larger than the number of characters in builder.

InvalidOperationException The instance had been initialized using the default constructor.

See Also