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.
Namespace: SnapDB.SnapAssembly: 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()
<ExtensionAttribute>
Public Shared Function Count(Of TKey As {Class, New}, TValue As {Class, New}) (
stream As TreeStream(Of TKey, TValue)
) As Long
public:
[ExtensionAttribute]
generic<typename TKey, typename TValue>
where TKey : ref class, gcnew()
where TValue : ref class, gcnew()
static long long Count(
TreeStream<TKey, TValue>^ stream
)
JavaScript does not support generic types or methods.
- stream TreeStreamTKey, TValue
- The stream to enumerate.
- TKey
- The key type.
- TValue
- The value type.
Int64The number of items in the stream.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).