PerformanceTestBaseTDelegate, TResultGetLength Method

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).

Definition

Namespace: KGySoft.Diagnostics
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.1.0
C#
protected virtual int GetLength(
	TResult result
)

Parameters

result  TResult
The result.

Return Value

Int32
The length of the result.

See Also