public float Convert(IDistance distance) { if (distance == default) { throw new ArgumentNullException(nameof(distance)); } return(distance.GetHashCode()); }