Snippet: IEnumerator<T> variable

property value
IDE VS Code
Language C#
Title IEnumerator<T> variable
Shortcut u_er
Description IEnumerator<T> variable declaration.

Placeholders

Identifier Tooltip Default Value
_collectionIdentifier Collection identifier name items
enumerator Enumerator identifier name en

Code

using (var en = items.GetEnumerator()) {
	while (en.MoveNext()) {
		
	}
}