Snippet: IEnumerator<T> variable

property value
IDE Visual Studio
Language C#
Title IEnumerator<T> variable
Shortcut u
Description IEnumerator<T> variable declaration.
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_collectionIdentifier Collection identifier name items yes
enumerator Enumerator identifier name en yes

Code

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