<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" />

UnicodeRange

public sealed class UnicodeRange
Represents a contiguous range of Unicode code points.
public int FirstCodePoint { get; }

Gets the first code point in the range represented by this UnicodeRange instance.

public int Length { get; }

Gets the number of code points in the range represented by this UnicodeRange instance.

public UnicodeRange(int firstCodePoint, int length)

Creates a new UnicodeRange that includes a specified number of characters starting at a specified Unicode code point.

public static UnicodeRange Create(char firstCharacter, char lastCharacter)

Creates a new UnicodeRange instance from a span of characters.