Version
Show / Hide Table of Contents

Iterator Class

The iterator for smart contracts.

Namespace: Neo.SmartContract.Framework.Services.Neo

Assembly: Neo.SmartContract.Framework

Syntax

public class Iterator
public class Iterator<T> : Iterator, IApiInterface

Attributes

NameDescription
ValueGets the current value of the iterator

Methods

NameName
Create(Map<TKey, TValue> entry)Static method that creates iterators
Create(IEnumerable<TValue> entry)Static method that creates iterators
Concat(Iterator<TKey, TValue> value)Connects iterators
Next()Returns if there is a next element in the iterator and if yes, locates to the next element

You can also use Storage.Find() to construct the Iterator object.