Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 811 Bytes

TypeReference.md

File metadata and controls

10 lines (6 loc) · 811 Bytes

TypeReference

[Transformation Source]

This is the abstract base type reference type. It cannot refer to anything on its own.

This is generally the type you extend if you're implementing your own type reference type.

Unlike declarations, type references are expected to implement value equality. You generally get this for free as type references are C#9 records, but if your type has inconsequential private members (such as caching for lazy evaluations) you must manually implement Equals and GetHashCode to ensure the apparent value equality works as expected.