Example #1
0
        public string ComMascara()
        {
            if (Inscricao.Trim() == "")
            {
                return("");
            }

            string pattern = Inscricao.Length == 9 ? @"{0:00\.0000\.00\-0}" : @"{0:00\.000\.00\-0}";

            return(String.Format(pattern, Convert.ToUInt64(this.Inscricao)));
        }
Example #2
0
 public bool Equals(CNPJ cnpj)
 {
     return(Inscricao.Trim() == cnpj.SemMascara());
 }
Example #3
0
 public string SemMascara()
 {
     return(Inscricao.Trim());
 }