ITokenizedStringList Interface

Definition

A tokenized representation of a string into abutting and non-overlapping segments.

C++
public interface class ITokenizedStringList : System::Collections::Generic::ICollection<System::String ^>, System::Collections::Generic::IEnumerable<System::String ^>, System::Collections::Generic::IList<System::String ^>
Implements

Remarks

This interface implements IList so that it can be used with IDifferenceService, which finds the differences between two sequences represented as ILists.

Properties

Original

The original string that was tokenized.

Methods

GetElementInOriginal(Int32)

Maps the index of an element to its span in the original list.

GetSpanInOriginal(Span)

Maps a span of elements in this list to the span in the original list.

Extension Methods

EmptyIfNull<T>(IEnumerable<T>)

Return this enumeration in case it is not null. In case it is null return empty enumeration.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022