public static bool TryParse(string dni, out DNI salida) { try { salida = DNI.Parse(dni); } catch { salida = null; return(false); } return(true); }
public bool Equals(DNI otro) => otro != null ? this._dni == otro._dni : false;