Version 2.1.0.0

GarbageFreeIterators class

Namespace: Sirenix.Utilities
Assembly: Sirenix.Utilities
public static class GarbageFreeIterators
Garbage free enumerator methods.
Inheritance
  • System.Object
  • GarbageFreeIterators

Methods

GFIterator<T>(HashSet<T>)
Garbage free enumerator for hashsets.
public static GarbageFreeIterators.HashsetIterator<T> GFIterator<T>(this HashSet<T> hashset)
Parameters
System.Collections.Generic.HashSet<T> hashset

Type Parameters
T

GFIterator<T>(List<T>)
Garbage free enumerator for lists.
public static GarbageFreeIterators.ListIterator<T> GFIterator<T>(this List<T> list)
Parameters
System.Collections.Generic.List<T> list

Type Parameters
T

GFIterator<T1, T2>(Dictionary<T1, T2>)
Garbage free enumerator for dictionaries.
public static GarbageFreeIterators.DictionaryIterator<T1, T2> GFIterator<T1, T2>(this Dictionary<T1, T2> dictionary)
Parameters
System.Collections.Generic.Dictionary<T1, T2> dictionary

Type Parameters
T1

T2

GFValueIterator<T1, T2>(Dictionary<T1, T2>)
Garbage free enumator for dictionary values.
public static GarbageFreeIterators.DictionaryValueIterator<T1, T2> GFValueIterator<T1, T2>(this Dictionary<T1, T2> dictionary)
Parameters
System.Collections.Generic.Dictionary<T1, T2> dictionary

Type Parameters
T1

T2