예제 #1
0
 public virtual string GetCpfFormatado()
 {
     try
     {
         return(CPFCNPJUtil.formatCPForCPNJ(Cpf, false));
     }
     catch (Exception)
     {
         return(Cpf.ToString());
     }
 }
예제 #2
0
 public override string ToString()
 {
     try
     {
         return(this.Nome + " (" + CPFCNPJUtil.formatCPForCPNJ(Cpf, false) + ")");
     }
     catch (Exception)
     {
         return(this.Nome + " (" + Cpf + ")");
     }
 }