ITokenizedStringList 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
字符串的标记化表示形式,表示为节段和非重叠段。
public interface class ITokenizedStringList : System::Collections::Generic::ICollection<System::String ^>, System::Collections::Generic::IEnumerable<System::String ^>, System::Collections::Generic::IList<System::String ^>
public interface ITokenizedStringList : System.Collections.Generic.ICollection<string>, System.Collections.Generic.IEnumerable<string>, System.Collections.Generic.IList<string>
type ITokenizedStringList = interface
interface IList<string>
interface ICollection<string>
interface seq<string>
interface IEnumerable
Public Interface ITokenizedStringList
Implements ICollection(Of String), IEnumerable(Of String), IList(Of String)
- 实现
注解
此接口实现 IList,以便它可以与 一起使用 IDifferenceService,这可以查找表示为 IList 的两个序列之间的差异。
属性
Original |
已标记化的原始字符串。 |
方法
GetElementInOriginal(Int32) |
将元素的索引映射到原始列表中的范围。 |
GetSpanInOriginal(Span) |
将此列表中的元素范围映射到原始列表中的范围。 |
扩展方法
EmptyIfNull<T>(IEnumerable<T>) |
如果枚举不为 null,则返回此枚举。 如果为 null,则返回空枚举。 |