Table of Contents

Method ThrowIfOutInt32

Namespace
Zyl.ExSpans.Exceptions
Assembly
ExSpans.Core.dll

ThrowIfOutInt32(nint, string?)

Throws an exception if the length is out of the range of int (当长度超出 int 的范围时抛出异常).

public static void ThrowIfOutInt32(nint length, string? memberName = null)

Parameters

length nint

The length.

memberName string

The member name.

Exceptions

ExSpanTooLongException

Throws an exception if the length is out of the range of Int32.