Edit

Share via


Utf8Parser Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides static methods to parse Utf8 strings to common data types.

C#
public static class Utf8Parser
Inheritance
Utf8Parser

Methods

TryParse(ReadOnlySpan<Byte>, Boolean, Int32, Char)

Parses a Boolean at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, Byte, Int32, Char)

Parses a Byte at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, DateTime, Int32, Char)

Parses a DateTime at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, DateTimeOffset, Int32, Char)

Parses a DateTimeOffset at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, Decimal, Int32, Char)

Parses a Decimal at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, Double, Int32, Char)

Parses a Double at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, Guid, Int32, Char)

Parses a Guid at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, Int16, Int32, Char)

Parses an Int16 at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, Int32, Int32, Char)

Parses an Int32 at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, Int64, Int32, Char)

Parses an Int64 at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, SByte, Int32, Char)

Parses an SByte at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, Single, Int32, Char)

Parses a Single at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, TimeSpan, Int32, Char)

Parses a TimeSpan at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, UInt16, Int32, Char)

Parses a UInt16 at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, UInt32, Int32, Char)

Parses a UInt32 at the start of a Utf8 string.

TryParse(ReadOnlySpan<Byte>, UInt64, Int32, Char)

Parses a UInt64 at the start of a Utf8 string.

Applies to

Product Versions
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1