Class LayerComparer
- Namespace
- CADability.Attribute
- Assembly
- CADability.dll
Equality comparer that treats two Layer objects as equal when they have the same Name, regardless of whether they are the same instance. Useful as the comparer of a dictionary or hash set keyed by layer when the layers may come from different lists (e.g. a project and its clone). A shared instance is available as LayerComparer.
public class LayerComparer : IEqualityComparer<Layer>
- Inheritance
-
LayerComparer
- Implements
- Inherited Members
Constructors
LayerComparer()
public LayerComparer()