Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ BinarySearch< T, TComparable >() [2/2]

static int System.SpanHelpers.BinarySearch< T, TComparable > ( this ReadOnlySpan< T > span,
TComparable comparable )
inlinestatic
Type Constraints
TComparable :IComparable<T> 

Definition at line 34 of file SpanHelpers.cs.

35 {
36 if (comparable == null)
37 {
38 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.comparable);
39 }
40 return BinarySearch(ref MemoryMarshal.GetReference(span), span.Length, comparable);
41 }

References System.comparable, and System.ThrowHelper.ThrowArgumentNullException().