Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | List of all members
Loyc.Collections.IMEnumerator< T > Interface Template Reference

A mutable enumerator interface. Provides a "Remove" method like Java iterators have, and allows you to modify the current item. More...


Source file:
Inheritance diagram for Loyc.Collections.IMEnumerator< T >:
Loyc.Collections.IMBinumerator< T >

Remarks

A mutable enumerator interface. Provides a "Remove" method like Java iterators have, and allows you to modify the current item.

Please note, not all collections will support "Remove".

Properties

new T Current [get, set]
 Gets or sets the value of the current item. More...
 

Public Member Functions

bool Remove ()
 Removes the current item and moves to the next one. Remember NOT to call MoveNext() immediately after Remove(). More...
 

Member Function Documentation

◆ Remove()

bool Loyc.Collections.IMEnumerator< T >.Remove ( )

Removes the current item and moves to the next one. Remember NOT to call MoveNext() immediately after Remove().

Returns
True if there is a next item after this one, false if the removed item was the last one.
Exceptions
NotSupportedExceptionThe collection does not permit this operation.

Property Documentation

◆ Current

new T Loyc.Collections.IMEnumerator< T >.Current
getset

Gets or sets the value of the current item.