Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 862 Bytes

AddressFamily-Comparers.rst

File metadata and controls

24 lines (17 loc) · 862 Bytes

AddressFamily Comparers

AddressFamily comparers are simply classes that extend Comparer<AddressFamily>.

DefaultAddressFamilyComparer

Behind the scenes AddressFamily is simply an enum. Typically we're only concerned with InterNetwork, with a value of 2, and InternNetworkV6 which is valued at 23.

The DefaultAddressFamilyComparer is used to compare the address families of the addresses. No real magic here, we're simply comparing two AddressFamily values based on their inherit inherit value.