Utf8Formatter 类

定义

提供静态方法,以将常见数据类型的格式设置为 Utf8 字符串。

public ref class Utf8Formatter abstract sealed
public static class Utf8Formatter
type Utf8Formatter = class
Public Class Utf8Formatter
继承
Utf8Formatter

方法

名称 说明
TryFormat(Boolean, Span<Byte>, Int32, StandardFormat)

将 A Boolean 格式设置为 UTF8 字符串。

TryFormat(Byte, Span<Byte>, Int32, StandardFormat)

将 A Byte 格式设置为 UTF8 字符串。

TryFormat(DateTime, Span<Byte>, Int32, StandardFormat)

将 A DateTime 格式设置为 UTF8 字符串。

TryFormat(DateTimeOffset, Span<Byte>, Int32, StandardFormat)

将 A DateTimeOffset 格式设置为 UTF8 字符串。

TryFormat(Decimal, Span<Byte>, Int32, StandardFormat)

将 A Decimal 格式设置为 UTF8 字符串。

TryFormat(Double, Span<Byte>, Int32, StandardFormat)

将 A Double 格式设置为 UTF8 字符串。

TryFormat(Guid, Span<Byte>, Int32, StandardFormat)

将 A Guid 格式设置为 UTF8 字符串。

TryFormat(Int16, Span<Byte>, Int32, StandardFormat)

将 UTF8 Int16 字符串的格式设置为 UTF8 字符串。

TryFormat(Int32, Span<Byte>, Int32, StandardFormat)

将 UTF8 Int32 字符串的格式设置为 UTF8 字符串。

TryFormat(Int64, Span<Byte>, Int32, StandardFormat)

将 UTF8 Int64 字符串的格式设置为 UTF8 字符串。

TryFormat(SByte, Span<Byte>, Int32, StandardFormat)

将 UTF8 SByte 字符串的格式设置为 UTF8 字符串。

TryFormat(Single, Span<Byte>, Int32, StandardFormat)

将 A Single 格式设置为 UTF8 字符串。

TryFormat(TimeSpan, Span<Byte>, Int32, StandardFormat)

将 A TimeSpan 格式设置为 UTF8 字符串。

TryFormat(UInt16, Span<Byte>, Int32, StandardFormat)

将 A UInt16 格式设置为 UTF8 字符串。

TryFormat(UInt32, Span<Byte>, Int32, StandardFormat)

将 A UInt32 格式设置为 UTF8 字符串。

TryFormat(UInt64, Span<Byte>, Int32, StandardFormat)

将 A UInt64 格式设置为 UTF8 字符串。

适用于