StringRuneEnumerator Struct

Definition

Provides an enumerator for the Rune values represented by a string.

public value class StringRuneEnumerator : System::Collections::Generic::IEnumerable<System::Text::Rune>, System::Collections::Generic::IEnumerator<System::Text::Rune>
public struct StringRuneEnumerator : System.Collections.Generic.IEnumerable<System.Text.Rune>, System.Collections.Generic.IEnumerator<System.Text.Rune>
type StringRuneEnumerator = struct
    interface seq<Rune>
    interface IEnumerable
    interface IEnumerator<Rune>
    interface IEnumerator
    interface IDisposable
Public Structure StringRuneEnumerator
Implements IEnumerable(Of Rune), IEnumerator(Of Rune)
Inheritance
StringRuneEnumerator
Implements

Remarks

This type is not intended to be referenced directly by application code. Instead, use the EnumerateRunes() method along with language-specific enumeration constructs to enumerate Rune values within strings.

The foreach statement of the C# language (for each in C++, For Each in Visual Basic) hides the complexity of enumerators. Therefore, using foreach is recommended, instead of directly manipulating the enumerator.

Properties

Current

Gets the Rune at the current position of the enumerator.

Methods

GetEnumerator()

Returns the current enumerator instance.

MoveNext()

Advances the enumerator to the next Rune of the string.

Explicit Interface Implementations

IDisposable.Dispose()

Releases all resources used by the current StringRuneEnumerator instance.

IEnumerable.GetEnumerator()

Returns the current enumerator instance.

IEnumerable<Rune>.GetEnumerator()

Returns the current enumerator instance.

IEnumerator.Current

Gets the Rune at the current position of the enumerator.

IEnumerator.Reset()

Resets the current StringRuneEnumerator instance to the beginning of the string.

Extension Methods

CopyToDataTable<T>(IEnumerable<T>)

Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>)

Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

Removes every node in the source collection from its parent node.

Applies to