Struct SerializedArrayView.Enumerator
Enumerates the elements of SerializedArrayView.
Inherited Members
Namespace: Unity.Serialization.Json
Syntax
public struct Enumerator : IEnumerator<SerializedValueView>, IDisposable, IEnumerator
Properties
Current
The element in the SerializedArrayView at the current position of the enumerator.
Declaration
public readonly SerializedValueView Current { get; }
Property Value
Type | Description |
---|---|
SerializedValueView |
Implements
Exceptions
Type | Condition |
---|---|
InvalidOperationException | The enumerator is positioned before the first element of the collection or after the last element. |
Methods
Dispose()
Releases all resources used by the SerializedArrayView.Enumerator.
Declaration
public void Dispose()
Implements
MoveNext()
Advances the enumerator to the next element of the SerializedArrayView.
Declaration
public bool MoveNext()
Returns
Type | Description |
---|---|
Boolean | true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. |
Implements
Reset()
Sets the enumerator to its initial position, which is before the first element in the collection.
Declaration
public void Reset()
Implements
Explicit Interface Implementations
IEnumerator.Current
Declaration
readonly object IEnumerator.Current { get; }
Returns
Type | Description |
---|---|
Object |