TreeStreamExtensionsCountTKey, TValue Method

Parses an entire stream to count the number of items. Notice, this will enumerate the stream, and the stream will have to be reset to be enumerated again.

Definition

Namespace: SnapDB.Snap
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public static long Count<TKey, TValue>(
	this TreeStream<TKey, TValue> stream
)
where TKey : class, new()
where TValue : class, new()

Parameters

stream  TreeStreamTKey, TValue
The stream to enumerate.

Type Parameters

TKey
The key type.
TValue
The value type.

Return Value

Int64
The number of items in the stream.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type TreeStreamTKey, TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also