Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ToBoolean() [1/2]

static bool System.BitConverter.ToBoolean ( byte[] value,
int startIndex )
inlinestatic

Definition at line 459 of file BitConverter.cs.

460 {
461 if (value == null)
462 {
463 ThrowHelper.ThrowArgumentNullException(ExceptionArgument.value);
464 }
465 if (startIndex < 0)
466 {
467 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
468 }
469 if (startIndex > value.Length - 1)
470 {
471 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.startIndex, ExceptionResource.ArgumentOutOfRange_Index);
472 }
473 return value[startIndex] != 0;
474 }

References System.startIndex, System.ThrowHelper.ThrowArgumentNullException(), System.ThrowHelper.ThrowArgumentOutOfRangeException(), and System.value.