UtilsCheckTRangeT(ListT, T, T, Boolean) Method

Check whether all given values are 0 smaller than t smaller than 1.

Definition

Namespace: Karamba.Utilities
Assembly: KarambaCommon (in KarambaCommon.dll) Version: 3.0.8.0+eb23a7103f0eca0b6d808121e15fec6899194e15
C#
public static string CheckTRange<T>(
	List<T> ts,
	T min,
	T max,
	bool throw = false
)
where T : struct, new(), IComparable<T>

Parameters

ts  ListT
T-Values to range check.
min  T

[Missing <param name="min"/> documentation for "M:Karamba.Utilities.Utils.CheckTRange``1(System.Collections.Generic.List{``0},``0,``0,System.Boolean)"]

max  T

[Missing <param name="max"/> documentation for "M:Karamba.Utilities.Utils.CheckTRange``1(System.Collections.Generic.List{``0},``0,``0,System.Boolean)"]

throw  Boolean  (Optional)

[Missing <param name="throw"/> documentation for "M:Karamba.Utilities.Utils.CheckTRange``1(System.Collections.Generic.List{``0},``0,``0,System.Boolean)"]

Type Parameters

T
type related to range checking.

Return Value

String
non-empty error message string in case of out of range error.

See Also