NFe.Components.CNPJ.CNPJ C# (CSharp) Method

CNPJ() private method

private CNPJ ( string cnpj ) : System
cnpj string
return System
        private CNPJ(string cnpj)
        {
            if (cnpj.Length == 0) return;

            cnpj = Functions.OnlyNumbers(cnpj, ".,-/").ToString();
            if (CNPJ.Validate(cnpj) == false) throw new ExceptionCNPJInvalido(cnpj);
            this.mValue = cnpj;
        }
        #endregion