Enhanced C#
Loyc library documentation
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Loyc.IReferenceEquatable Interface Reference

This is a tag which indicates that objects of this type are unique; specifically, any two different objects that implement this interface are always unequal, and one object is equal only to itself. More...


Source file:
Inheritance diagram for Loyc.IReferenceEquatable:
Loyc.Symbol Loyc.Syntax.Impl.PrinterIndentHint Loyc.Syntax.ParsingMode

Remarks

This is a tag which indicates that objects of this type are unique; specifically, any two different objects that implement this interface are always unequal, and one object is equal only to itself.

This interface is recognized by Loyc.Collections.MSet{T}, Loyc.Collections.Set{T} and Loyc.Collections.InternalSet{T}. It causes normal comparison (via IEqualityComparer{T} to be skipped in favor of reference comparison. Symbol implements this interface.