IndexedString 类

定义

提供类用来优化对象图序列化的 ObjectStateFormatter 实用工具字符串类。 此类不能被继承。

public ref class IndexedString sealed
[System.Serializable]
public sealed class IndexedString
[<System.Serializable>]
type IndexedString = class
Public NotInheritable Class IndexedString
继承
IndexedString
属性

注解

IndexedString 类用于 ObjectStateFormatter 生成字符串表并优化对象图序列化。 IndexedString 提供优化,允许高效存储包含重复字符串的页面状态信息。 该 IndexedString 类不打算直接从代码使用。

构造函数

名称 说明
IndexedString(String)

初始化 IndexedString 类的新实例。

属性

名称 说明
Value

获取与 IndexedString 对象关联的字符串。

方法

名称 说明
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)

适用于