Table of Contents

Method ThrowByLength

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

ThrowByLength(nint, string?)

Throw exceptions constructed from length (抛出根据长度构造的异常).

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

Parameters

length nint

The length.

memberName string

The member name.

Exceptions

ExSpanTooLongException

Alway throws exception.