语言

InplaceStringBuilder 结构

定义

注意

This type is retained only for compatibility. The recommended alternative is string.Create<TState> (int length, TState state, System.Buffers.SpanAction<char,TState> action).

提供一种用于快速、非分配字符串串联的机制。

public value class InplaceStringBuilder
[System.Obsolete("This type is retained only for compatibility. The recommended alternative is string.Create<TState> (int length, TState state, System.Buffers.SpanAction<char,TState> action).", true)]
public struct InplaceStringBuilder
[<System.Obsolete("This type is retained only for compatibility. The recommended alternative is string.Create<TState> (int length, TState state, System.Buffers.SpanAction<char,TState> action).", true)>]
type InplaceStringBuilder = struct
Public Structure InplaceStringBuilder
继承
InplaceStringBuilder
特性

构造函数

名称 说明
InplaceStringBuilder(Int32)
已过时.

初始化 InplaceStringBuilder 类的新实例。

属性

名称 说明
Capacity
已过时.

获取当前 InplaceStringBuilder 对象可以包含的字符数。

方法

名称 说明
Append(Char)
已过时.

将字符追加到当前 InplaceStringBuilder 实例的末尾。

Append(String, Int32, Int32)
已过时.

将子字符串追加到当前 InplaceStringBuilder 实例的末尾。

Append(String)
已过时.

将字符串追加到当前 InplaceStringBuilder 实例的末尾。

Append(StringSegment)
已过时.

将字符串段追加到当前 InplaceStringBuilder 实例的末尾。

ToString()
已过时.

将此实例的值转换为字符串。

适用于