Class LookedUpEnumerable<T>
- Namespace
- CADability
- Assembly
- CADability.dll
Enumerates a sequence and replaces each element by its value in a dictionary when the dictionary contains it, otherwise yields the element unchanged; used e.g. to map faces of a shell to the corresponding faces of a clone. Created by LookUp<T>(IEnumerable<T>, Dictionary<T, T>). Internal helper, not an entry point of the API.
public class LookedUpEnumerable<T> : IEnumerable<T>, IEnumerable, IEnumerator<T>, IEnumerator, IDisposable
Type Parameters
TElement type
- Inheritance
-
LookedUpEnumerable<T>
- Implements
-
IEnumerable<T>IEnumerator<T>
- Inherited Members
- Extension Methods
Constructors
LookedUpEnumerable(IEnumerable<T>, Dictionary<T, T>)
public LookedUpEnumerable(IEnumerable<T> enumerable, Dictionary<T, T> lookUp)
Parameters
enumerableIEnumerable<T>lookUpDictionary<T, T>