public override int GetHashCode()
 {
     return(_registry != null ? _registry.GetHashCode() : 0);
 }