ContentCollectionIterator

References
An iterator for the RenderContentCollection

Constructors

ContentCollectionIterator

#Since v6.0
public ContentCollectionIterator(nint pCollection)
pCollection (nint)

Finalizer

~ContentCollectionIterator

#
~ContentCollectionIterator()
Finalizer

Properties

CppPointer

#Since v6.0
public nint CppPointer { get; }

Methods

DeleteThis

#Since v6.0 Obsolete v9.0
public void DeleteThis()
obsoleteUse Dispose

Dispose

#Since v6.0
public void Dispose()

First

#Since v6.0
public RenderContent First()

GetEnumerator

#Since v9.0
public IEnumerator<RenderContent> GetEnumerator()
Enumerates the contents, rewinding the iterator to the beginning first. This makes it possible to use the iterator in a foreach loop or with LINQ instead of manually calling First() and Next(). The iterator itself is not disposed by enumerating it, so it should still be wrapped in a 'using' statement, or the whole RenderContentCollection can be enumerated directly instead.
Explicit

IEnumerable.GetEnumerator

#Since v9.0
IEnumerator IEnumerable.GetEnumerator()