KGy SOFT

PerformanceTestBaseTDelegate, TResultGetLength Method

KGy SOFT Core Libraries Help
Gets the length of the result in any unit specified by the GetUnit method.
The base implementation returns element count if TResult is IEnumerable; otherwise, the size of TResult in bytes (which is 4 or 8 bytes for reference types, depending on the platform target).

Namespace:  KGySoft.Diagnostics
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.4.0
Syntax

protected virtual int GetLength(
	TResult result
)

Parameters

result
Type: TResult
The result.

Return Value

Type: Int32
The length of the result.
See Also

Reference